diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 20:58:35 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 20:58:35 +0000 |
commit | 9f1d9fd1964d82f3e801efb71518144492cdf290 (patch) | |
tree | fb6a689c0275a2c77086b695db3b5065ce454bf2 /unittests | |
parent | 7e17024400941889b6fe1b178e5374f75c34d9ab (diff) | |
download | llvm-9f1d9fd1964d82f3e801efb71518144492cdf290.tar.gz llvm-9f1d9fd1964d82f3e801efb71518144492cdf290.tar.bz2 llvm-9f1d9fd1964d82f3e801efb71518144492cdf290.tar.xz |
Remove the program class.
It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
those two functions and make Execute and Wait implementations details.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Support/ProgramTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Support/ProgramTest.cpp b/unittests/Support/ProgramTest.cpp index 6cbb05454f..f132c03304 100644 --- a/unittests/Support/ProgramTest.cpp +++ b/unittests/Support/ProgramTest.cpp @@ -79,9 +79,9 @@ TEST(ProgramTest, CreateProcessTrailingSlash) { Path nul("/dev/null"); #endif const Path *redirects[] = { &nul, &nul, 0 }; - int rc = Program::ExecuteAndWait(my_exe, argv, &envp[0], redirects, - /*secondsToWait=*/10, /*memoryLimit=*/0, - &error, &ExecutionFailed); + int rc = + ExecuteAndWait(my_exe, argv, &envp[0], redirects, /*secondsToWait=*/ 10, + /*memoryLimit=*/ 0, &error, &ExecutionFailed); EXPECT_FALSE(ExecutionFailed) << error; EXPECT_EQ(0, rc); } |