diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-13 12:35:58 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-13 15:07:44 +0200 |
commit | 83440953e50d1c46217ce9bdcd74aa9a4671913d (patch) | |
tree | 4e94f8444c479e4e59be2b760dba01d3aa561ed2 /tests/sysfs_rps.c | |
parent | 2371c79bbd69f46c2849298fb7f216a5b9a21aa8 (diff) |
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>
Diffstat (limited to 'tests/sysfs_rps.c')
-rw-r--r-- | tests/sysfs_rps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/sysfs_rps.c b/tests/sysfs_rps.c index 0dd392fa..59a2e92c 100644 --- a/tests/sysfs_rps.c +++ b/tests/sysfs_rps.c @@ -39,7 +39,7 @@ static int origmin, origmax; if (!(COND)) { \ writeval(stuff[MIN].filp, origmin); \ writeval(stuff[MAX].filp, origmax); \ - assert(0); \ + igt_assert(0); \ } \ } while (0); @@ -69,7 +69,7 @@ static int readval(FILE *filp) fflush(filp); rewind(filp); scanned = fscanf(filp, "%d", &val); - assert(scanned == 1); + igt_assert(scanned == 1); return val; } @@ -83,7 +83,7 @@ static int do_writeval(FILE *filp, int val, int lerrno) rewind(filp); ret = fprintf(filp, "%d", val); if (ret && lerrno) - assert(errno = lerrno); + igt_assert(errno = lerrno); fflush(filp); return ret; } @@ -146,14 +146,14 @@ int main(int argc, char *argv[]) int val = -1; char *path; ret = asprintf(&path, sysfs_base_path, device, junk->name); - assert(ret != -1); + igt_assert(ret != -1); junk->filp = fopen(path, junk->mode); if (junk->filp == NULL) { printf("Kernel is too old. GTFO\n"); exit(77); } val = readval(junk->filp); - assert(val >= 0); + igt_assert(val >= 0); junk++; } while(junk->name != NULL); |