mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-25 07:05:45 +00:00
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>
This commit is contained in:
+8
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user