Skip to content

Commit 6eeaf28

Browse files
committed
fix: check for correct OS name
Windows 11 has as os.name "Windows NT", therefor needed a ignoreCase Signed-off-by: Stef3st <[email protected]>
1 parent ab31ea5 commit 6eeaf28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riseclipse/validator-riseclipse/src/test/java/org/lfenergy/compas/scl/validator/impl/OclFileLoaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void constructor_WhenCalledWithUnCreatableTempFile_ThenExceptionThrown() {
7474
}
7575

7676
private boolean isWindows() {
77-
return System.getProperty("os.name").contains("win");
77+
return System.getProperty("os.name").toLowerCase().contains("win");
7878
}
7979

8080
@Test

0 commit comments

Comments
 (0)