mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Try to unbreak mingw32 buildbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190438 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a03e32d397
commit
3014066976
@ -39,11 +39,11 @@ TEST(ProcessTest, SelfProcess) {
|
|||||||
EXPECT_GT(TimeValue::MaxTime, process::get_self()->get_wall_time());
|
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)
|
#define setenv(name, var, ignore) _putenv_s(name, var)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_SETENV || defined(LLVM_ON_WIN32)
|
#if HAVE_SETENV || _MSC_VER
|
||||||
TEST(ProcessTest, Basic) {
|
TEST(ProcessTest, Basic) {
|
||||||
setenv("__LLVM_TEST_ENVIRON_VAR__", "abc", true);
|
setenv("__LLVM_TEST_ENVIRON_VAR__", "abc", true);
|
||||||
Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__"));
|
Optional<std::string> val(Process::GetEnv("__LLVM_TEST_ENVIRON_VAR__"));
|
||||||
|
Loading…
Reference in New Issue
Block a user