2
0
Nicolas Cannasse 11 жил өмнө
parent
commit
7d0cfdae0a

+ 6 - 3
tests/RunTravis.hx

@@ -371,6 +371,9 @@ class RunTravis {
 	static function main():Void {
 	static function main():Void {
 		changeDirectory(unitDir);
 		changeDirectory(unitDir);
 		Sys.putEnv("OCAMLRUNPARAM", "b");
 		Sys.putEnv("OCAMLRUNPARAM", "b");
+		
+		var args = ["foo", "12", "a b c\\ &<>[\"]#{}|"];
+		
 		switch (test) {
 		switch (test) {
 			case Macro, null:
 			case Macro, null:
 				runCommand("haxe", ["compile-macro.hxml"]);
 				runCommand("haxe", ["compile-macro.hxml"]);
@@ -410,7 +413,7 @@ class RunTravis {
 				changeDirectory(sysDir);
 				changeDirectory(sysDir);
 				runCommand("haxe", ["compile-neko.hxml"]);
 				runCommand("haxe", ["compile-neko.hxml"]);
 				changeDirectory("bin/neko");
 				changeDirectory("bin/neko");
-				runCommand("neko", ["sys.n", "foo", "12", "a b c\\\\"]);
+				runCommand("neko", ["sys.n"].concat(args));
 			case Php:
 			case Php:
 				getPhpDependencies();
 				getPhpDependencies();
 				runCommand("haxe", ["compile-php.hxml"]);
 				runCommand("haxe", ["compile-php.hxml"]);
@@ -423,7 +426,7 @@ class RunTravis {
 				changeDirectory(sysDir);
 				changeDirectory(sysDir);
 				runCommand("haxe", ["compile-python.hxml"]);
 				runCommand("haxe", ["compile-python.hxml"]);
 				changeDirectory("bin/python");
 				changeDirectory("bin/python");
-				runCommand("python3", ["sys.py", "foo", "12", "a b c\\\\"]);
+				runCommand("python3", ["sys.py"].concat(args));
 			case Cpp:
 			case Cpp:
 				getCppDependencies();
 				getCppDependencies();
 				runCommand("haxe", ["compile-cpp.hxml"]);
 				runCommand("haxe", ["compile-cpp.hxml"]);
@@ -437,7 +440,7 @@ class RunTravis {
 				changeDirectory(sysDir);
 				changeDirectory(sysDir);
 				runCommand("haxe", ["compile-cpp.hxml"]);
 				runCommand("haxe", ["compile-cpp.hxml"]);
 				changeDirectory("bin/cpp");
 				changeDirectory("bin/cpp");
-				runCommand("./Main-debug", ["foo", "12", "a b c\\\\"]);
+				runCommand("./Main-debug", args);
 			case Js:
 			case Js:
 				getJSDependencies();
 				getJSDependencies();
 
 

+ 1 - 1
tests/sys/src/TestSys.hx

@@ -4,7 +4,7 @@ class TestSys extends haxe.unit.TestCase {
 		assertEquals(3, args.length);
 		assertEquals(3, args.length);
 		assertEquals("foo", args[0]);
 		assertEquals("foo", args[0]);
 		assertEquals("12", args[1]);
 		assertEquals("12", args[1]);
-		assertEquals("a b c\\", args[2]);
+		assertEquals("a b c\\ &<>[\"]#{}|", args[2]);		
 	}
 	}
 
 
 	function testEnv() {
 	function testEnv() {