llvm.org GIT mirror llvm / e1a2fc6
[unittests] Fix up test after rL313156 Bot: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/42421 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313163 91177308-0d34-0410-b5e6-96231b3b80d8 Vedant Kumar 2 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
143143 const char *SwVersPath = "/usr/bin/sw_vers";
144144 const char *argv[] = {SwVersPath, "-productVersion", nullptr};
145145 StringRef OutputPath = OutputFile.str();
146 const StringRef *Redirects[] = {/*STDIN=*/nullptr, /*STDOUT=*/&OutputPath,
147 /*STDERR=*/nullptr};
146 const Optional Redirects[] = {/*STDIN=*/None,
147 /*STDOUT=*/OutputPath,
148 /*STDERR=*/None};
148149 int RetCode = ExecuteAndWait(SwVersPath, argv, /*env=*/nullptr, Redirects);
149150 ASSERT_EQ(0, RetCode);
150151