Commit 4e4f5b4f authored by Daniel Vetter's avatar Daniel Vetter

lib/tests: More igt_subtest_group checks

... for some cases discussed with Chris on irc. We seem to get them all
right.
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 483d1c0a
......@@ -28,6 +28,7 @@
igt_main
{
bool t1 = false;
int t2 = 0;
igt_subtest_group {
igt_fixture {
......@@ -59,5 +60,24 @@ igt_main
}
}
igt_subtest_group {
igt_fixture {
assert(t2 == 0);
t2 = 1;
}
igt_subtest("run-again") {
assert(t2 == 1);
t2 = 2;
}
igt_fixture {
assert(t2 == 2);
t2 = 3;
}
}
assert(t1);
assert(t2 == 3);
}
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