summaryrefslogtreecommitdiff
path: root/lib/igt_core.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-21 00:43:45 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-21 13:39:37 +0100
commite5088c8218d1c2b559a9e1645d34f929d05c3889 (patch)
tree3042c24505766e7bcded57e84ae961303893dee3 /lib/igt_core.c
parentc0b012f3e1d6b9707b621624a86ff5288a8a4fbc (diff)
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 <arkadiusz.hiler@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
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;
}