diff options
author | Tobias Thierer <tobiast@google.com> | 2016-11-10 14:35:56 +0000 |
---|---|---|
committer | Tobias Thierer <tobiast@google.com> | 2016-11-11 13:55:14 +0000 |
commit | 3ad2773818481c00cbdc093c0a625a6cc61a97f9 (patch) | |
tree | 452a5866be3c17298fee9882007be4661309e805 /annotations/generate_annotated_java_files.py | |
parent | 1f9933397eb3374355bc3e4c6c041a949d40050a (diff) |
Let ProcessBuilderTest.testRedirectInherit() run sleep rather than sh
It appears that /system/bin/sh exits quickly with code 0 when inheriting
all file descriptors from the test process (presumably it doesn't like
something about them, e.g. perhaps stdin is /dev/null). This caused
ProcessBuilderTest.testRedirectInherit() to fail in ~ 0.5% of runs with
ErrnoException: stat failed: ENOENT (No such file or directory)
while stat-ing /proc/[childPDI]/fd/0 and friends.
"sleep 5" is less picky about its file descriptors; therefore this
CL changes the test to use that command.
Bug: 27464570
Test: Ran ProcessBuilderTest.testRedirectInherit() 40000 times in a
loop (took about a minute on a Nexus 6P).
Change-Id: I8bde31a7b9b674b98822d4229922968bbc862b86
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions