diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-13 18:01:33 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-13 18:14:13 +0200 |
commit | 2347e6d21eb1431479358955007a4c78430173d8 (patch) | |
tree | 02d2131359cd492f24024bf4fb8bc621723ce864 /lib/igt.cocci | |
parent | 46811c849a79892f6d0a63ae5425e59989244978 (diff) |
lib: Introduce igt_fail_on/_f
I've yet again totally screwed things up (this time automated with
cocci even, but not yet pushed luckily). So finally add a new version
for easier conversion and adjust the cocci script.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt.cocci')
-rw-r--r-- | lib/igt.cocci | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/igt.cocci b/lib/igt.cocci index e944c7d1..b5c0bfe6 100644 --- a/lib/igt.cocci +++ b/lib/igt.cocci @@ -13,7 +13,14 @@ expression list[n] Ep; ) - igt_fail(...); - } -+ igt_assert_f(Ec, Ep); ++ igt_fail_on_f(Ec, Ep); +@@ +expression Ec; +@@ +- if (Ec) { +- igt_fail(...); +- } ++ igt_fail_on(Ec); @@ expression Ec; expression list[n] Ep; |