forked from OSchip/llvm-project
[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:
parent
1e53195c2a
commit
bc26f72655
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue