summaryrefslogtreecommitdiff
path: root/lib/igt_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_core.c')
-rw-r--r--lib/igt_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 71b05d3b..6eb4798e 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -463,6 +463,7 @@ uint64_t igt_nsec_elapsed(struct timespec *start)
bool __igt_fixture(void)
{
assert(!in_fixture);
+ assert(test_with_subtests);
if (igt_only_list_subtests())
return false;
@@ -975,6 +976,8 @@ bool igt_only_list_subtests(void)
void __igt_subtest_group_save(int *save)
{
+ assert(test_with_subtests);
+
*save = skip_subtests_henceforth;
}