projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a03e32d
)
Try to unbreak mingw32 buildbot.
author
Rui Ueyama
<ruiu@google.com>
Tue, 10 Sep 2013 21:32:42 +0000
(21:32 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Tue, 10 Sep 2013 21:32:42 +0000
(21:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190438
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/ProcessTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/ProcessTest.cpp
b/unittests/Support/ProcessTest.cpp
index ac1b01e88bfdefd97c3da465f3599a78454b35fa..27c2318215d6b5348f98b2ce863cd476b52fcba9 100644
(file)
--- 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__"));