[igt-dev] [PATCH i-g-t v3 7/9] lib/igt_core: Just use igt_can_fail() in __igt_run_subtest()

Lyude lyude at redhat.com
Wed Apr 24 20:20:31 UTC 2019


From: Lyude Paul <lyude at redhat.com>

That's what it's there for.

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
Reviewed-by: Petri Latvala <petri.latvala at intel.com>
Signed-off-by: Lyude Paul <lyude at redhat.com>
---
 lib/igt_core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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++)
-- 
2.20.1



More information about the igt-dev mailing list