mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
lib/igt.cocci: Add greater-than to igt_assert_lt*
Change m >= n patterns to igt_assert_lte(n, m), and ditto for strict greater-than. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
6ead44d70b
commit
31821fce59
@ -161,6 +161,12 @@ int E3, E4;
|
||||
- igt_assert(E1 < E2);
|
||||
+ igt_assert_lt_u32(E1, E2);
|
||||
|
|
||||
- igt_assert(E1 >= E2);
|
||||
+ igt_assert_lte_u32(E2, E1);
|
||||
|
|
||||
- igt_assert(E1 > E2);
|
||||
+ igt_assert_lt_u32(E2, E1);
|
||||
|
|
||||
- igt_assert(E3 == E4);
|
||||
+ igt_assert_eq(E3, E4);
|
||||
|
|
||||
@ -172,6 +178,12 @@ int E3, E4;
|
||||
|
|
||||
- igt_assert(E3 < E4);
|
||||
+ igt_assert_lt(E3, E4);
|
||||
|
|
||||
- igt_assert(E3 >= E4);
|
||||
+ igt_assert_lte(E4, E3);
|
||||
|
|
||||
- igt_assert(E3 > E4);
|
||||
+ igt_assert_lt(E4, E3);
|
||||
)
|
||||
|
||||
// avoid unused-result warnings when compiling with _FORTIFY_SOURCE defined
|
||||
|
Loading…
x
Reference in New Issue
Block a user