diff options
author | Narayan Kamath <narayan@google.com> | 2015-01-21 11:36:50 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-01-21 11:36:50 +0000 |
commit | 432abb6e8635e3dcac46648e158b5dc2c71b84fc (patch) | |
tree | 1007c843f22130b05c46a5abdbbe4b65f55ad544 /harmony-tests/src/test/java/org/apache | |
parent | 6dc0ed7247a7520bf14a89db9b4bc3015d3cdcb2 (diff) | |
download | libcore-432abb6e8635e3dcac46648e158b5dc2c71b84fc.zip libcore-432abb6e8635e3dcac46648e158b5dc2c71b84fc.tar.gz libcore-432abb6e8635e3dcac46648e158b5dc2c71b84fc.tar.bz2 |
Fix ProcessTest#getErrorStream.
Broken by the move to toybox. Instead of double guessing the
error message, just assume that all "cat" variants (host / target etc.)
output the name of the "bad" paramater to the error stream.
Change-Id: If19fa737e0d3a3dd023185fa23854da3022020fa
Diffstat (limited to 'harmony-tests/src/test/java/org/apache')
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ProcessTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ProcessTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ProcessTest.java index b87105b..1a73719 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ProcessTest.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ProcessTest.java @@ -86,7 +86,7 @@ public class ProcessTest extends junit.framework.TestCase { assertEquals("", received); String stderr = readAndCloseStream(p.getErrorStream()); - assertTrue(stderr, stderr.contains("unrecognized option") || stderr.contains("invalid option")); + assertTrue(stderr, stderr.contains("no-such-option")); p.waitFor(); p.destroy(); |