diff options
| author | Tobias Thierer <tobiast@google.com> | 2016-05-06 20:57:21 +0100 |
|---|---|---|
| committer | Tobias Thierer <tobiast@google.com> | 2016-05-10 17:42:59 +0100 |
| commit | 690d83d222053d67ec1ee5a60768ff753487f860 (patch) | |
| tree | e31a1b79fa3bbf9e158fa87179670c8d48b31b0d /include/ScopedJavaUnicodeString.h | |
| parent | 749902a39faef5a3cd2349351fb07fdd0b98de21 (diff) | |
Test for Process in/out/err redirect from/to file/pipe via ProcessBuilder
The tests run
- "sh -c cat" to test in/out redirect, and
- "ls /tmp/missing-file/ProcessBuilderTest" to test error redirect.
The tests use a new helper method checkProcessExecution() which
has a similar purpose to Support_Exec.execAndCheckOutput() but also
supports writing the process's input and checking the result code.
It may be nice to refactor the existing callers of execAndCheckOutput()
to use checkProcessExecution() instead, but I haven't done that.
Redirect.INHERIT remains untested, mostly because I can't think of a
good way to test it.
Tested:
make cts && cts-tradefed run cts -c libcore.java.lang.ProcessBuilderTest
vogar --mode=host --classpath \
out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/classes.jack \
libcore/luni/src/test/java/libcore/java/lang/ProcessBuilderTest.java
Bug: 27464570
Change-Id: Ieb6dd53e363f352df86106016222b1378039fa41
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions
