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);
+ }
}
}
igt_require(file);
ret = fscanf(file, "Sink_Support: %s\n", str);
- igt_skip_on_f(ret == 0,
- "i915_edp_psr_status format not supported by this test case\n");
+ if (ret == 0)
+ igt_skip("i915_edp_psr_status format not supported by this test case\n");
fclose(file);
return strcmp(str, "yes") == 0;