mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
Revert "tests: Run igt.cocci over tests"
This reverts commit 6903ab04e5.
The igt_assert conversion rule is broken and doesn't invert the check
as it should.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+10
-4
@@ -118,11 +118,17 @@ static void _assert_dfs_entry(const char *fname, const char *s, bool inverse)
|
||||
|
||||
read_dfs(fname, tmp, l + 1);
|
||||
if (!inverse) {
|
||||
igt_assert_f(strncmp(tmp, s, l) != 0,
|
||||
"contents of %s: '%s' (expected '%s')\n", fname, tmp, s);
|
||||
if (strncmp(tmp, s, l) != 0) {
|
||||
fprintf(stderr, "contents of %s: '%s' (expected '%s')\n",
|
||||
fname, tmp, s);
|
||||
igt_fail(1);
|
||||
}
|
||||
} else {
|
||||
igt_assert_f(strncmp(tmp, s, l) == 0,
|
||||
"contents of %s: '%s' (expected not '%s'\n", fname, tmp, s);
|
||||
if (strncmp(tmp, s, l) == 0) {
|
||||
fprintf(stderr, "contents of %s: '%s' (expected not '%s'\n",
|
||||
fname, tmp, s);
|
||||
igt_fail(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user