From b47b42ed9dc64fd1ab9eb606ebadd7abda4354b5 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 20 Jun 2014 15:45:45 +0200 Subject: [PATCH] Disable a test in CommandExecutorTest on MSWindows because of false-positives --- .../java/org/sonar/api/utils/command/CommandExecutorTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java index 3c95ed9a8a5..d82d93bdc55 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java @@ -34,6 +34,7 @@ import java.io.IOException; import static org.fest.assertions.Assertions.assertThat; import static org.junit.Assert.fail; +import static org.junit.Assume.assumeFalse; public class CommandExecutorTest { @@ -55,6 +56,9 @@ public class CommandExecutorTest { @Test public void should_consume_StdOut_and_StdErr() throws Exception { + // too many false-positives on MS windows + assumeFalse(SystemUtils.IS_OS_WINDOWS); + final StringBuilder stdOutBuilder = new StringBuilder(); StreamConsumer stdOutConsumer = new StreamConsumer() { public void consumeLine(String line) { -- 2.39.5