summaryrefslogtreecommitdiffstats
path: root/unittests/Support
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-09-10 21:32:42 +0000
committerRui Ueyama <ruiu@google.com>2013-09-10 21:32:42 +0000
commit3014066976dd24d8ca565dd5fabe4d5a6144574f (patch)
tree8574e762ba01f20faf194f28d12e1c00f08505b7 /unittests/Support
parenta03e32d3979c8382b21aed10d1a23bfb8d4ee390 (diff)
downloadexternal_llvm-3014066976dd24d8ca565dd5fabe4d5a6144574f.zip
external_llvm-3014066976dd24d8ca565dd5fabe4d5a6144574f.tar.gz
external_llvm-3014066976dd24d8ca565dd5fabe4d5a6144574f.tar.bz2
Try to unbreak mingw32 buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/ProcessTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Support/ProcessTest.cpp b/unittests/Support/ProcessTest.cpp
index ac1b01e..27c2318 100644
--- a/unittests/Support/ProcessTest.cpp
+++ b/unittests/Support/ProcessTest.cpp
@@ -39,11 +39,11 @@ TEST(ProcessTest, SelfProcess) {
EXPECT_GT(TimeValue::MaxTime, process::get_self()->get_wall_time());
}
-#ifdef LLVM_ON_WIN32
+#ifdef _MSC_VER
#define setenv(name, var, ignore) _putenv_s(name, var)
#endif
-#if HAVE_SETENV || defined(LLVM_ON_WIN32)
+#if HAVE_SETENV || _MSC_VER
TEST(ProcessTest, Basic) {
setenv("__LLVM_TEST_ENVIRON_VAR__", "abc", true);
Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__"));