mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 17:06:14 +00:00
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 <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
483d1c0a23
commit
4e4f5b4fdc
@ -28,6 +28,7 @@
|
||||
igt_main
|
||||
{
|
||||
bool t1 = false;
|
||||
int t2 = 0;
|
||||
|
||||
igt_subtest_group {
|
||||
igt_fixture {
|
||||
@ -59,5 +60,24 @@ igt_main
|
||||
}
|
||||
}
|
||||
|
||||
assert(t1);
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user