util/xmlconfig: Make unit tests more resilient against user env settings
Before this, setting 'vblank_mode=0' in the environment would cause a unit test to fail. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12477>
This commit is contained in:
parent
8f935317e6
commit
1a6d1e9309
|
@ -40,6 +40,19 @@ protected:
|
|||
|
||||
xmlconfig_test::xmlconfig_test()
|
||||
{
|
||||
/* Unset variables from the envrionment to prevent user settings from
|
||||
* impacting the tests.
|
||||
*/
|
||||
unsetenv("glsl_zero_init");
|
||||
unsetenv("always_have_depth_buffer");
|
||||
unsetenv("opt");
|
||||
unsetenv("vblank_mode");
|
||||
unsetenv("not_present");
|
||||
unsetenv("mesa_b_option");
|
||||
unsetenv("mesa_s_option");
|
||||
unsetenv("mest_test_unknown_option");
|
||||
unsetenv("mest_drirc_option");
|
||||
|
||||
options = {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue