aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorJulien HENRY <henryju@yahoo.fr>2017-07-05 14:32:37 +0200
committerJulien HENRY <henryju@yahoo.fr>2017-07-05 14:42:08 +0200
commit44023b33d97d874e79ecd11efe745f004063e8b7 (patch)
tree0c997f06fa62ab24c0c8e101c2124f4000c1944a /sonar-scanner-engine
parentcf0653f726df89776688bb25ca8a3b34dec685ec (diff)
downloadsonarqube-44023b33d97d874e79ecd11efe745f004063e8b7.tar.gz
sonarqube-44023b33d97d874e79ecd11efe745f004063e8b7.zip
Fix tests on Windows
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java
index 4a7800668e3..bf8091f5853 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/filesystem/InputFileBuilderTest.java
@@ -64,7 +64,7 @@ public class InputFileBuilderTest {
DefaultInputFile inputFile = builder.create(filePath, Type.MAIN, StandardCharsets.UTF_8);
assertThat(inputFile.moduleKey()).isEqualTo("module1");
- assertThat(inputFile.absolutePath()).isEqualTo(filePath.toString());
+ assertThat(inputFile.absolutePath()).isEqualTo(filePath.toString().replaceAll("\\\\", "/"));
assertThat(inputFile.key()).isEqualTo("module1:src/File1.xoo");
assertThat(inputFile.publish()).isFalse();
}