aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar Han-Wen Nienhuys <hanwen@google.com>2015-02-16 15:01:06 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-02-16 15:01:06 +0000
commit924daad8869c679b09b687e87f3b829da1dc4d3a (patch)
tree3d4a0b6acad29743cb1847991d5466a5246fff19 /src/test/java
parent8dff4291cc4e7a31f4207ecb8041099b5a63d146 (diff)
Fix testOnlyReadsPartialInput on Darwin.
-- MOS_MIGRATED_REVID=86431291
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/shell/CommandTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java b/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java
index 4531cd5d7a..694972ed59 100644
--- a/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java
+++ b/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java
@@ -456,7 +456,8 @@ public class CommandTest {
@Test
public void testOnlyReadsPartialInput() throws Exception {
- Command command = new Command(new String[] {"head", "--bytes", "500"});
+ // -c == --bytes, but -c also works on Darwin.
+ Command command = new Command(new String[] {"head", "-c", "500"});
OutputStream out = new ByteArrayOutputStream();
InputStream in = new InputStream() {