llvm.org GIT mirror llvm / 3014066
Try to unbreak mingw32 buildbot. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190438 91177308-0d34-0410-b5e6-96231b3b80d8 Rui Ueyama 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3838 EXPECT_GT(TimeValue::MaxTime, process::get_self()->get_wall_time());
3939 }
4040
41 #ifdef LLVM_ON_WIN32
41 #ifdef _MSC_VER
4242 #define setenv(name, var, ignore) _putenv_s(name, var)
4343 #endif
4444
45 #if HAVE_SETENV || defined(LLVM_ON_WIN32)
45 #if HAVE_SETENV || _MSC_VER
4646 TEST(ProcessTest, Basic) {
4747 setenv("__LLVM_TEST_ENVIRON_VAR__", "abc", true);
4848 Optional val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__"));