diff --git a/src/EnvironmentParserTest.cpp b/src/EnvironmentParserTest.cpp index b75b1f1..849ccf4 100644 --- a/src/EnvironmentParserTest.cpp +++ b/src/EnvironmentParserTest.cpp @@ -26,8 +26,7 @@ TEST_F(EnvironmentParserTest, returnsValueIfEnvVariableExists) const auto expectedEnvValue = "test"; #if defined(_WIN32) || defined(__MINGW32__) || defined(__MINGW64__) - const std::string envNameWithEquals = envName + "=" + expectedEnvValue; - _putenv_s(envNameWithEquals.c_str()); + _putenv_s("CONFIG_CXX_TEST_PATH=test"); #else setenv(envName, expectedEnvValue, 1); #endif