mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 06:13:04 +00:00
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>
This commit is contained in:
+2
-2
@@ -209,7 +209,7 @@ static void cpucpy2d(uint32_t *src, unsigned src_stride, unsigned src_x, unsigne
|
||||
printf("mismatch at tile %i pos %i, read %i, expected %i, diff %i\n",
|
||||
logical_tile_no, i*options.tile_size + j, tmp, expect, (int) tmp - expect);
|
||||
if (options.trace_tile >= 0 && options.fail)
|
||||
exit(1);
|
||||
igt_fail(1);
|
||||
failed++;
|
||||
}
|
||||
/* when not aborting, correct any errors */
|
||||
@@ -217,7 +217,7 @@ static void cpucpy2d(uint32_t *src, unsigned src_stride, unsigned src_x, unsigne
|
||||
}
|
||||
}
|
||||
if (failed && options.fail)
|
||||
exit(1);
|
||||
igt_fail(1);
|
||||
|
||||
if (failed > stats.max_failed_reads)
|
||||
stats.max_failed_reads = failed;
|
||||
|
||||
Reference in New Issue
Block a user