summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2019-04-16 14:49:06 -0400
committerLyude Paul <lyude@redhat.com>2019-05-07 17:38:04 -0400
commit1477a72f515c07b6ae1718a2ef9e16d4e4df28e8 (patch)
treeb07c52a764a92a4c13911be6a655c4e4cbeb94f2
parent3f26aa32f2f9a17dd7fdf1a22321be02a6e63374 (diff)
lib/igt_core: Just use igt_can_fail() in __igt_run_subtest()
That's what it's there for. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Lyude Paul <lyude@redhat.com>
-rw-r--r--lib/igt_core.c4
1 files changed, 1 insertions, 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++)