mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 09:56:22 +00:00
core: Improve phrasing for test requirements
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
72b1263649
commit
e0dffbdeda
@ -648,12 +648,12 @@ void __igt_skip_check(const char *file, const int line,
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
|
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
|
||||||
"Test requirement: (%s)\n%s"
|
"Test requirement: %s\n%s"
|
||||||
"%s",
|
"%s",
|
||||||
func, file, line, check, buf, err_str ?: "");
|
func, file, line, check, buf, err_str ?: "");
|
||||||
} else {
|
} else {
|
||||||
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
|
igt_skip("Test requirement not met in function %s, file %s:%i:\n"
|
||||||
"Test requirement: (%s)\n"
|
"Test requirement: %s\n"
|
||||||
"%s",
|
"%s",
|
||||||
func, file, line, check, err_str ?: "");
|
func, file, line, check, err_str ?: "");
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,10 @@ void igt_exit(void) __attribute__((noreturn));
|
|||||||
* skipping. This is useful to streamline the skip logic since it allows for a more flat
|
* skipping. This is useful to streamline the skip logic since it allows for a more flat
|
||||||
* code control flow, similar to igt_assert()
|
* 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:
|
* igt_skip_on:
|
||||||
@ -321,7 +324,7 @@ void igt_exit(void) __attribute__((noreturn));
|
|||||||
*/
|
*/
|
||||||
#define igt_skip_on(expr) \
|
#define igt_skip_on(expr) \
|
||||||
do { if ((expr)) \
|
do { if ((expr)) \
|
||||||
__igt_skip_check(__FILE__, __LINE__, __func__, #expr , NULL); \
|
__igt_skip_check(__FILE__, __LINE__, __func__, "!(" #expr ")" , NULL); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user