mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 06:13:04 +00:00
lib/drmtest: don't complete fixtures with a longjmp
Longjmp creates havoc with stack variables of the current stackframe. And since fixtures should be used to set up such variables creating havoc isn't a great idea. With this I can revert a bunch of bogus patches I've done to paper over this by moving stack variables to be global. The same issue is actually a feature for subtest blocks since subtests should be independant anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -666,6 +666,11 @@ bool __igt_fixture(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
void __igt_fixture_complete(void)
|
||||
{
|
||||
in_fixture = false;
|
||||
}
|
||||
|
||||
void __igt_fixture_end(void)
|
||||
{
|
||||
assert(in_fixture);
|
||||
|
||||
Reference in New Issue
Block a user