]> source.dussan.org Git - sonarqube.git/commitdiff
Fix test on MSWindows
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 10 Oct 2012 20:38:33 +0000 (22:38 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 10 Oct 2012 20:38:33 +0000 (22:38 +0200)
sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java

index 391573f8057176814b2f5443d1c4deffb9ac1e12..b3f15c26231b1cb7c7265bb6da7d70d4da0ea2ea 100644 (file)
@@ -117,7 +117,7 @@ public class CommandExecutorTest {
     File logFile = new File(workDir, "echo.log");
     assertThat(logFile).exists();
     String log = FileUtils.readFileToString(logFile);
-    assertThat(log).contains(workDir.getCanonicalPath());
+    assertThat(log).contains(workDir.getAbsolutePath());
     assertThat(log).contains("Parameter: 1");
     assertThat(log).contains("Environment variable: 2");
   }