Browse Source

[tests] fix stderr template path normalization macros for unix (haxe only lowercases paths on windows)

Dan Korostelev 11 năm trước cách đây
mục cha
commit
4706b5717b
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      tests/misc/src/Main.hx

+ 5 - 1
tests/misc/src/Main.hx

@@ -63,8 +63,12 @@ class Main {
 
 	static function normPath(resolve, p:String):String {
 		if (Sys.systemName() == "Windows")
+		{
+			// on windows, haxe returns lowercase paths with backslashes
 			p = p.replace("/", "\\");
-		return p.toLowerCase();
+			p = p.toLowerCase();
+		}
+		return p;
 	}
 
 	static function runCommand(command:String, args:Array<String>, expectFailure:Bool, expectStderr:String) {