[PATCH i-g-t 06/33] cocci: Only process abort() rules for tests

Lyude lyude at redhat.com
Fri Jun 7 23:07:54 UTC 2019


From: Lyude Paul <lyude at redhat.com>

abort() is fine for internal library checks, but not for tests.

Signed-off-by: Lyude Paul <lyude at redhat.com>
---
 lib/igt.cocci | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt.cocci b/lib/igt.cocci
index 985019bd..d6d564d7 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -70,12 +70,12 @@ expression list[n] Ep;
 
 // No abort for tests, really. Should only be used for internal library checks
 // in lib/*
- at ignore_internal_abort@
+ at ignore_internal_abort depends on file in "tests/"@
 position p;
 @@
 void __igt_fail_assert(...) { <... abort at p(); ...> }
 
-@@
+ at depends on file in "tests/"@
 position p != ignore_internal_abort.p;
 @@
 -abort at p();
-- 
2.21.0



More information about the Intel-gfx-trybot mailing list