From 89b8b0df6de86957e9b3489ccfc953d9ec52bb68 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 16 Oct 2023 16:15:43 -0600 Subject: [PATCH] Unset env-var in layer tests Need to unset an env-var in order to allow the vul_tests executable to pass all tests. This is because environment variables leak between tests when not running with CTest. --- tests/test_setting_env.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_setting_env.cpp b/tests/test_setting_env.cpp index ac50d4d..9e3150c 100644 --- a/tests/test_setting_env.cpp +++ b/tests/test_setting_env.cpp @@ -439,4 +439,6 @@ TEST(test_layer_setting_env, vkuGetLayerSettingValues_String) { EXPECT_EQ(2, value_count); vkuDestroyLayerSettingSet(layerSettingSet, nullptr); + + SetEnv("VK_LUNARG_TEST_MY_SETTING="); }