]> source.dussan.org Git - sonarqube.git/commitdiff
Disable a test in CommandExecutorTest on MSWindows because of false-positives
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 20 Jun 2014 13:45:45 +0000 (15:45 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 20 Jun 2014 13:50:29 +0000 (15:50 +0200)
sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java

index 3c95ed9a8a5c4d10d7fd8d3c3b3502b2cdf91e88..d82d93bdc5590ef4c7569c6aa20d571ed34c233b 100644 (file)
@@ -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) {