aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 27d4e2af82..4531cd5d7a 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
@@ -475,7 +475,8 @@ public class CommandTest {
@Test
public void testFlushing() throws Exception {
final Command command = new Command(
- new String[] {"/bin/sh", "-c", "echo -n Foo; sleep 0.1; echo Bar"});
+ // On darwin, /bin/sh does not support -n for the echo builtin.
+ new String[] {"/bin/bash", "-c", "echo -n Foo; sleep 0.1; echo Bar"});
// We run this command, passing in a special output stream
// that records when each flush() occurs.
// We test that a flush occurs after writing "Foo"