summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2016-05-10 21:36:35 +0100
committerTobias Thierer <tobiast@google.com>2016-07-26 13:32:17 +0100
commit0bb0ab08422f1f91152aaa9a171f3afefbc0ca50 (patch)
tree899cef8110d733ece4c5bf6bb39bb40bdc56085f /annotations/generate_annotated_java_files.py
parent69addbde026d6861ae8691f73f8acf57b602dcf0 (diff)
Tests that Processes with redirects expose null input/output streams.
The terms "null input stream" and "null output stream" are defined in the toplevel ProcessBuilder documentation; therefore this CL adds the testing logic to ProcessBuilderTest. Note that the guarantee that Process.get{Input,Output,Error}Stream() is of such a nature is made both in the ProcessBuilder and in the Process documentation. Note that the documentation doesn't guarantee that the package private classes ProcessBuilder.Null{Input,Output}Stream are used for this; it is also not the case for redirectErrorStream(true). Therefore this test does not check that they're instanceof Null*Stream. Instead, it checks some slightly weaker properties that must be true for all null streams. Test: cts-tradefed run cts -c libcore.java.lang.ProcessBuilderTest Bug: 27464570 Change-Id: I9ddb8e006f943548884566e7b3ac34b4b949b120
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions