mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 14:23:03 +00:00
tests: s/assert/igt_assert
Just a wholesale rollout for now, we can refine later on. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
@@ -92,7 +91,7 @@ main(int argc, char **argv)
|
||||
|
||||
/* stirr up the page allocator a bit. */
|
||||
ptr = malloc(OBJ_SIZE);
|
||||
assert(ptr);
|
||||
igt_assert(ptr);
|
||||
memset(ptr, 0x1, OBJ_SIZE);
|
||||
|
||||
handle = create_bo(fd);
|
||||
@@ -102,7 +101,7 @@ main(int argc, char **argv)
|
||||
*/
|
||||
gem_read(fd, handle, 0, ptr, OBJ_SIZE);
|
||||
for (i = 0; i < OBJ_SIZE/4; i++)
|
||||
assert(ptr[i] == i);
|
||||
igt_assert(ptr[i] == i);
|
||||
|
||||
close(fd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user