[unittests] Fix up test after rL313156

Bot: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/42421
llvm-svn: 313163
This commit is contained in:
Vedant Kumar 2017-09-13 18:00:22 +00:00
parent 1e53195c2a
commit bc26f72655
1 changed files with 3 additions and 2 deletions

View File

@ -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);