std::getenv -> _dupenv_s (20 to go)
@@ -27,7 +27,13 @@ TEST(EmptyTestSuite, empty_gtest)
//GTEST_SKIP_("to show this feature");
// SKIP on Github Actions
+#ifdef _WIN32
+ char* github_action;
+ size_t len;
+ _dupenv_s(&github_action, &len, "GITHUB_ACTIONS");
+#else
char *github_action = std::getenv("GITHUB_ACTIONS");
+#endif
if(github_action) { GTEST_SKIP()
<< " to show this feature";
}
