igt_fixture and igt_subtests use longjmp/setjmp internally, which
means local variables at the same stack frame are at risk. Best
practice is to move them out right in front of the igt_main block.
It would be awesome if someone could come up with a cocci patch to
auto-fix this, but unfortunately my attempts failed.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
}
}
+data_t data = {};
+enum tests test;
+
igt_main
{
- data_t data = {};
- enum tests test;
-
igt_skip_on_simulation();
igt_fixture {