va_end(args);
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
- "Test requirement: (%s)\n%s"
+ "Test requirement: %s\n%s"
"%s",
func, file, line, check, buf, err_str ?: "");
} else {
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
- "Test requirement: (%s)\n"
+ "Test requirement: %s\n"
"%s",
func, file, line, check, err_str ?: "");
}
* skipping. This is useful to streamline the skip logic since it allows for a more flat
* code control flow, similar to igt_assert()
*/
-#define igt_require(expr) igt_skip_on(!(expr))
+#define igt_require(expr) \
+ do { if (!(expr)) \
+ __igt_skip_check(__FILE__, __LINE__, __func__, #expr , NULL); \
+ } while (0)
/**
* igt_skip_on:
*/
#define igt_skip_on(expr) \
do { if ((expr)) \
- __igt_skip_check(__FILE__, __LINE__, __func__, #expr , NULL); \
+ __igt_skip_check(__FILE__, __LINE__, __func__, "!(" #expr ")" , NULL); \
} while (0)
/**