[Intel-gfx] [PATCH 4/8] lib/igt.cocci: Convert abort() to igt_fail

Daniel Vetter daniel.vetter at ffwll.ch
Fri Jun 13 18:29:57 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 97aa43f9f057..dcb7bbc94dd0 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -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);
-- 
2.0.0




More information about the Intel-gfx mailing list