From e5088c8218d1c2b559a9e1645d34f929d05c3889 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 21 Feb 2019 00:43:45 +0100 Subject: lib: disallow fixtures/subtest groups in simple tests They don't work, see igt_can_fail(). We already check for test_with_subtests in igt_subtest. Reviewed-by: Arkadiusz Hiler Signed-off-by: Daniel Vetter --- lib/igt_core.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/igt_core.c') 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; } -- cgit v1.2.3