mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
lib/igt.cocci: Convert abort() to igt_fail
abort should only be used for internal library checks - using abort() we get a "crash" result, using igt_fail we get "fail" in piglit. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
bde52d1a08
commit
9eb9345f99
@ -44,3 +44,10 @@ expression list[n] Ep;
|
||||
@@
|
||||
-printf(Ep);
|
||||
+igt_info(Ep);
|
||||
|
||||
// No abort for tests, really. Should only be used for internal library checks
|
||||
// in lib/*
|
||||
@@
|
||||
@@
|
||||
-abort();
|
||||
+igt_fail(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user