summaryrefslogtreecommitdiff
path: root/tests/gem_partial_pwrite_pread.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-13 12:56:06 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-13 15:15:17 +0200
commit5e25fcc285240353ab15bd4c3a0d0e02d970f45b (patch)
treeb5f1d461532308a6fb4e4c3057d238d5d3ea0709 /tests/gem_partial_pwrite_pread.c
parentb30d95f33ca9c7c2cd3ef9e3e23ea965ee784a8a (diff)
tests: use igt_fail instead of exit(param != 0)
Mostly a sed job with too manual fixups: - one case of using _exit instead of exit - and one case which under some conditions use 77, so convert that check to an igt_skip. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_partial_pwrite_pread.c')
-rw-r--r--tests/gem_partial_pwrite_pread.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/gem_partial_pwrite_pread.c b/tests/gem_partial_pwrite_pread.c
index b2ccfd2c..ce2f1c81 100644
--- a/tests/gem_partial_pwrite_pread.c
+++ b/tests/gem_partial_pwrite_pread.c
@@ -123,7 +123,7 @@ static void test_partial_reads(void)
if (tmp[j] != val) {
printf("mismatch at %i, got: %i, expected: %i\n",
j, tmp[j], val);
- exit(1);
+ igt_fail(1);
}
}
@@ -159,21 +159,21 @@ static void test_partial_writes(void)
if (gtt_ptr[j] != val) {
printf("mismatch at %i, got: %i, expected: %i\n",
j, tmp[j], val);
- exit(1);
+ igt_fail(1);
}
}
for (; j < start + len; j++) {
if (gtt_ptr[j] != tmp[0]) {
printf("mismatch at %i, got: %i, expected: %i\n",
j, tmp[j], i);
- exit(1);
+ igt_fail(1);
}
}
for (; j < BO_SIZE; j++) {
if (gtt_ptr[j] != val) {
printf("mismatch at %i, got: %i, expected: %i\n",
j, tmp[j], val);
- exit(1);
+ igt_fail(1);
}
}
drm_intel_gem_bo_unmap_gtt(staging_bo);
@@ -204,7 +204,7 @@ static void test_partial_read_writes(void)
if (tmp[j] != val) {
printf("mismatch in read at %i, got: %i, expected: %i\n",
j, tmp[j], val);
- exit(1);
+ igt_fail(1);
}
}
@@ -229,21 +229,21 @@ static void test_partial_read_writes(void)
if (gtt_ptr[j] != val) {
printf("mismatch at %i, got: %i, expected: %i\n",
j, tmp[j], val);
- exit(1);
+ igt_fail(1);
}
}
for (; j < start + len; j++) {
if (gtt_ptr[j] != tmp[0]) {
printf("mismatch at %i, got: %i, expected: %i\n",
j, tmp[j], tmp[0]);
- exit(1);
+ igt_fail(1);
}
}
for (; j < BO_SIZE; j++) {
if (gtt_ptr[j] != val) {
printf("mismatch at %i, got: %i, expected: %i\n",
j, tmp[j], val);
- exit(1);
+ igt_fail(1);
}
}
drm_intel_gem_bo_unmap_gtt(staging_bo);