diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2022-03-22 17:45:55 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-03-25 20:02:53 +0000 |
commit | 12f329db53ca150f774cee9143fea19102356fb9 (patch) | |
tree | 412a213bc1b787fb5e8ad7c4c91192a671ed772c /sonar-scanner-engine/src | |
parent | 511d8d1d0d741843d107f1175c79f962d4743ec1 (diff) | |
download | sonarqube-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.java | 3 |
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 |