From 1477a72f515c07b6ae1718a2ef9e16d4e4df28e8 Mon Sep 17 00:00:00 2001 From: Lyude Paul Date: Tue, 16 Apr 2019 14:49:06 -0400 Subject: lib/igt_core: Just use igt_can_fail() in __igt_run_subtest() That's what it's there for. Reviewed-by: Daniel Vetter Reviewed-by: Petri Latvala Signed-off-by: Lyude Paul --- lib/igt_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/igt_core.c b/lib/igt_core.c index 43fa197f..d5d4fce2 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -903,9 +903,7 @@ bool __igt_run_subtest(const char *subtest_name) { int i; - assert(!in_subtest); - assert(!in_fixture); - assert(test_with_subtests); + assert(!igt_can_fail()); /* check the subtest name only contains a-z, A-Z, 0-9, '-' and '_' */ for (i = 0; subtest_name[i] != '\0'; i++) -- cgit v1.2.3