aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-03-22 17:45:55 +0100
committersonartech <sonartech@sonarsource.com>2022-03-25 20:02:53 +0000
commit12f329db53ca150f774cee9143fea19102356fb9 (patch)
tree412a213bc1b787fb5e8ad7c4c91192a671ed772c /sonar-scanner-engine/src
parent511d8d1d0d741843d107f1175c79f962d4743ec1 (diff)
downloadsonarqube-12f329db53ca150f774cee9143fea19102356fb9.tar.gz
sonarqube-12f329db53ca150f774cee9143fea19102356fb9.zip
NO-JIRA fixed ProjectCoverageExclusionsTest to work on every Windows OS
Diffstat (limited to 'sonar-scanner-engine/src')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/phases/ProjectCoverageExclusionsTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/phases/ProjectCoverageExclusionsTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/phases/ProjectCoverageExclusionsTest.java
index 42ebed27e70..847f8f7d3f2 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/phases/ProjectCoverageExclusionsTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/phases/ProjectCoverageExclusionsTest.java
@@ -20,6 +20,7 @@
package org.sonar.scanner.phases;
import java.io.File;
+import java.nio.file.LinkOption;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -44,7 +45,7 @@ public class ProjectCoverageExclusionsTest {
@Before
public void prepare() throws Exception {
- baseDir = temp.newFolder();
+ baseDir = temp.newFolder().toPath().toRealPath(LinkOption.NOFOLLOW_LINKS).toFile();
}
@Test