Commit e5088c82 authored by Daniel Vetter's avatar Daniel Vetter

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's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@intel.com>
parent c0b012f3
Pipeline #20468 passed with stages
in 3 minutes and 33 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment