mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
tests|lib: remove assert.h includes
Only the igt core and non-test tools should have asserts to catch internal errors, tests and helper libraries should all user igt_asert instead. Fix things up where assert instead of igt_assert was used. One tiny step towards header sanity. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+2
-2
@@ -109,7 +109,7 @@ test_debugfs_reader(void)
|
||||
snprintf(tmp, sizeof(tmp) - 1,
|
||||
"while true; do find %s/%i/ -type f | xargs cat > /dev/null 2>&1; done",
|
||||
dfs_base, drm_get_card());
|
||||
assert(execl("/bin/sh", "sh", "-c", tmp, (char *) NULL) != -1);
|
||||
igt_assert(execl("/bin/sh", "sh", "-c", tmp, (char *) NULL) != -1);
|
||||
}
|
||||
|
||||
sleep(1);
|
||||
@@ -134,7 +134,7 @@ test_sysfs_reader(void)
|
||||
snprintf(tmp, sizeof(tmp) - 1,
|
||||
"while true; do find %s%i*/ -type f | xargs cat > /dev/null 2>&1; done",
|
||||
dfs_base, drm_get_card());
|
||||
assert(execl("/bin/sh", "sh", "-c", tmp, (char *) NULL) != -1);
|
||||
igt_assert(execl("/bin/sh", "sh", "-c", tmp, (char *) NULL) != -1);
|
||||
}
|
||||
|
||||
sleep(1);
|
||||
|
||||
Reference in New Issue
Block a user