[Intel-gfx] [PATCH 3/5] lib/igt.cocci: Convert abort() to igt_fail
Daniel Vetter
daniel.vetter at ffwll.ch
Fri Jun 13 15:47:33 CEST 2014
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 at ffwll.ch>
---
lib/igt.cocci | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/igt.cocci b/lib/igt.cocci
index 9c6d0d045fac..a0573f5d4e4f 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -39,3 +39,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);
--
2.0.0
More information about the Intel-gfx
mailing list