[PATCH i-g-t 08/33] cocci: Fixup assert() rule to only apply to tests/

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


From: Lyude Paul <lyude at redhat.com>

See the discussion in 3f26aa32f2f9a17dd7fdf1a22321be02a6e63374 for more
information.

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 8e72be55..c241f34a 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -91,8 +91,8 @@ expression pipe;
 ...
 }
 
-// Tests and test libraries really shouldn't use plain assert!
-@@
+// Tests really shouldn't use plain assert!
+ at depends on file in "tests/"@
 expression E;
 @@
 - assert(E);
-- 
2.21.0



More information about the Intel-gfx-trybot mailing list