summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/ProgramTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-13 20:25:38 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-13 20:25:38 +0000
commit7c1023ad2737e6ff8d562412d52e0e2904f004d7 (patch)
tree8db5846eb8207d9382df4495e22d147854ee3cee /llvm/unittests/Support/ProgramTest.cpp
parent4a28e827439692b5ab2e929d175555068ffb16a9 (diff)
downloadbcm5719-llvm-7c1023ad2737e6ff8d562412d52e0e2904f004d7.tar.gz
bcm5719-llvm-7c1023ad2737e6ff8d562412d52e0e2904f004d7.zip
Avoid using PathV1.h in Program.h.
llvm-svn: 183940
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
-rw-r--r--llvm/unittests/Support/ProgramTest.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/unittests/Support/ProgramTest.cpp b/llvm/unittests/Support/ProgramTest.cpp
index f132c033045..1cf53d50b02 100644
--- a/llvm/unittests/Support/ProgramTest.cpp
+++ b/llvm/unittests/Support/ProgramTest.cpp
@@ -9,6 +9,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Path.h"
+#include "llvm/Support/PathV1.h"
#include "llvm/Support/Program.h"
#include "gtest/gtest.h"
@@ -74,14 +75,14 @@ TEST(ProgramTest, CreateProcessTrailingSlash) {
bool ExecutionFailed;
// Redirect stdout and stdin to NUL, but let stderr through.
#ifdef LLVM_ON_WIN32
- Path nul("NUL");
+ StringRef nul("NUL");
#else
- Path nul("/dev/null");
+ StringRef nul("/dev/null");
#endif
- const Path *redirects[] = { &nul, &nul, 0 };
- int rc =
- ExecuteAndWait(my_exe, argv, &envp[0], redirects, /*secondsToWait=*/ 10,
- /*memoryLimit=*/ 0, &error, &ExecutionFailed);
+ const StringRef *redirects[] = { &nul, &nul, 0 };
+ int rc = ExecuteAndWait(my_exe.str(), argv, &envp[0], redirects,
+ /*secondsToWait=*/ 10, /*memoryLimit=*/ 0, &error,
+ &ExecutionFailed);
EXPECT_FALSE(ExecutionFailed) << error;
EXPECT_EQ(0, rc);
}
OpenPOWER on IntegriCloud