diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-14 13:48:10 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-14 13:48:10 +0200 |
commit | f542b0970a1e4104fb0af0f60079271ac1cf02b1 (patch) | |
tree | e1b9dfdedc442b62718ce6b990858772175570c8 /lib/drmtest.c | |
parent | 6234658063b4080778c34228a444e96eb901279f (diff) |
lib/drmtest: Don't spoil stdout when listing tests
Oops.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 585ea1b2..f024c587 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -771,9 +771,11 @@ void igt_skip(void) void __igt_skip_check(const char *file, const int line, const char *func, const char *check) { - printf("Test requirement not met in function %s, file %s:%i:\n" - "Test requirement: (%s)\n", - func, file, line, check); + if (!igt_only_list_subtests()) { + printf("Test requirement not met in function %s, file %s:%i:\n" + "Test requirement: (%s)\n", + func, file, line, check); + } igt_skip(); } |