Browse Source

do not try to run Windows path tests when not on Windows

Simon Krajewski 10 years ago
parent
commit
811f230b08
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/sys/src/TestFileSystem.hx

+ 3 - 0
tests/sys/src/TestFileSystem.hx

@@ -93,6 +93,9 @@ class TestFileSystem extends haxe.unit.TestCase {
 	}
 
 	function testWindowsSpecialCases() {
+		if (Sys.systemName() != "Windows") {
+			return;
+		}
 		var withSlash = "C:/";
 		var withBackslash = "C:\\";
 		var without = "C:";