Skip to content

Commit

Permalink
Unset env-var in layer tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
charles-lunarg committed Oct 17, 2023
1 parent f56dfa0 commit 89b8b0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_setting_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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=");
}

0 comments on commit 89b8b0d

Please sign in to comment.