diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-22 19:27:04 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-22 19:39:46 +0100 |
commit | 0e22f14ed642af94db5f0dd7461920274be3361a (patch) | |
tree | 9330d305d9138437634c84721e30671aa4ecd9db /lib/drmtest.c | |
parent | bff22f7317a39605d53cf142e2c0f5c424d9c12c (diff) |
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>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 78b9999d..c2751e75 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -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); |