[llvm] r313163 - [unittests] Fix up test after rL313156
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 11:00:22 PDT 2017
Author: vedantk
Date: Wed Sep 13 11:00:22 2017
New Revision: 313163
URL: http://llvm.org/viewvc/llvm-project?rev=313163&view=rev
Log:
[unittests] Fix up test after rL313156
Bot: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/42421
Modified:
llvm/trunk/unittests/Support/Host.cpp
Modified: llvm/trunk/unittests/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Host.cpp?rev=313163&r1=313162&r2=313163&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Host.cpp (original)
+++ llvm/trunk/unittests/Support/Host.cpp Wed Sep 13 11:00:22 2017
@@ -144,8 +144,9 @@ TEST_F(HostTest, getMacOSHostVersion) {
const char *SwVersPath = "/usr/bin/sw_vers";
const char *argv[] = {SwVersPath, "-productVersion", nullptr};
StringRef OutputPath = OutputFile.str();
- const StringRef *Redirects[] = {/*STDIN=*/nullptr, /*STDOUT=*/&OutputPath,
- /*STDERR=*/nullptr};
+ const Optional<StringRef> Redirects[] = {/*STDIN=*/None,
+ /*STDOUT=*/OutputPath,
+ /*STDERR=*/None};
int RetCode = ExecuteAndWait(SwVersPath, argv, /*env=*/nullptr, Redirects);
ASSERT_EQ(0, RetCode);
More information about the llvm-commits
mailing list