summaryrefslogtreecommitdiff
path: root/lib/igt.cocci
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-06-13 15:45:12 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-06-13 18:12:42 +0200
commit9eb9345f9949f26bd4a5cae33a10809c5d05fe21 (patch)
treeec1a7db16aad8434e187088e5d6eee55f87f2d49 /lib/igt.cocci
parentbde52d1a08a7aeb9afe1e6cf642ba764674059da (diff)
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>
Diffstat (limited to 'lib/igt.cocci')
-rw-r--r--lib/igt.cocci7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/igt.cocci b/lib/igt.cocci
index 97aa43f9..dcb7bbc9 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);