mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +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:
@@ -27,7 +27,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <errno.h>
|
||||
@@ -73,11 +72,11 @@ int main(int argc, char **argv)
|
||||
|
||||
for (i = 0; i < BO_ARRAY_SIZE; i++) {
|
||||
bos[i] = drm_intel_bo_alloc(bufmgr, "mmap bo", 4096, 4096);
|
||||
assert(bos[i]);
|
||||
igt_assert(bos[i]);
|
||||
|
||||
drm_intel_bo_map(bos[i], 1);
|
||||
ptr = bos[i]->virtual;
|
||||
assert(ptr);
|
||||
igt_assert(ptr);
|
||||
*ptr = 'c';
|
||||
drm_intel_bo_unmap(bos[i]);
|
||||
}
|
||||
@@ -85,11 +84,11 @@ int main(int argc, char **argv)
|
||||
/* and recheck whether a second map of the same still works */
|
||||
for (i = 0; i < BO_ARRAY_SIZE; i++) {
|
||||
bos[i] = drm_intel_bo_alloc(bufmgr, "mmap bo", 4096, 4096);
|
||||
assert(bos[i]);
|
||||
igt_assert(bos[i]);
|
||||
|
||||
drm_intel_bo_map(bos[i], 1);
|
||||
ptr = bos[i]->virtual;
|
||||
assert(*ptr = 'c');
|
||||
igt_assert(*ptr = 'c');
|
||||
drm_intel_bo_unmap(bos[i]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user