mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 21:02:59 +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:
+1
-1
@@ -396,7 +396,7 @@ void igt_init_aperture_trashers(drm_intel_bufmgr *bufmgr)
|
||||
num_trash_bos = gem_mappable_aperture_size() / (1024*1024);
|
||||
|
||||
trash_bos = malloc(num_trash_bos * sizeof(drm_intel_bo *));
|
||||
assert(trash_bos);
|
||||
igt_assert(trash_bos);
|
||||
|
||||
for (i = 0; i < num_trash_bos; i++)
|
||||
trash_bos[i] = drm_intel_bo_alloc(bufmgr, "trash bo", 1024*1024, 4096);
|
||||
|
||||
Reference in New Issue
Block a user