[PATCH i-g-t 04/33] cocci: Update open-coded do_ioctl rule
Lyude
lyude at redhat.com
Fri Jun 7 23:07:52 UTC 2019
From: Lyude Paul <lyude at redhat.com>
Since it's expected that we would be using igt_assert_eq() for this, not
plain igt_assert()
Signed-off-by: Lyude Paul <lyude at redhat.com>
---
lib/igt.cocci | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt.cocci b/lib/igt.cocci
index 20ae3cca..8de871ca 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -208,7 +208,7 @@ expression a, b, c, e;
-do_or_die(drmIoctl(a, b, c));
+do_ioctl(a, b, c);
|
--igt_assert(drmIoctl(a, b, c) == 0);
+-igt_assert_eq(drmIoctl(a, b, c), 0);
+do_ioctl(a, b, c);
|
-igt_assert(drmIoctl(a, b, c) == -1 && errno == e);
--
2.21.0
More information about the Intel-gfx-trybot
mailing list