aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-09-17 16:59:39 +0200
committerSonarTech <sonartech@sonarsource.com>2018-09-24 20:20:57 +0200
commit1241f18a7b389336ce1eb98fe024f8db0bc5c627 (patch)
treec0f533c2afbff0b6271d0ee0575eda4e4834153a /server/sonar-process/src
parent3e5ce7c6fc3ccffc09ff6cb630b641c3ce101432 (diff)
downloadsonarqube-1241f18a7b389336ce1eb98fe024f8db0bc5c627.tar.gz
sonarqube-1241f18a7b389336ce1eb98fe024f8db0bc5c627.zip
SONAR-11259 Improve source offset handling on Windows
* Trying to create a range in the middle of a \r\n sequence will now automatically be adapted to exclude the eol * Fix a few other tests on Windows
Diffstat (limited to 'server/sonar-process/src')
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/FileUtils2Test.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-process/src/test/java/org/sonar/process/FileUtils2Test.java b/server/sonar-process/src/test/java/org/sonar/process/FileUtils2Test.java
index 2c7b9af0845..b36f46f200d 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/FileUtils2Test.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/FileUtils2Test.java
@@ -283,6 +283,7 @@ public class FileUtils2Test {
@Test
public void sizeOf_ignores_size_of_non_regular_files() throws IOException {
+ assumeTrue(SystemUtils.IS_OS_UNIX);
File outside = temporaryFolder.newFile();
FileUtils.write(outside, "outside!!!", UTF_8);
File dir = temporaryFolder.newFolder();