Pārlūkot izejas kodu

Fix forking tests on Windows when there is a space in the path.

See: https://bugs.torproject.org/26437
Alexander Færøy 5 gadi atpakaļ
vecāks
revīzija
46501cdd18
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 3 0
      changes/bug26437
  2. 1 1
      src/ext/tinytest.c

+ 3 - 0
changes/bug26437

@@ -0,0 +1,3 @@
+  o Testing:
+    - Fix forking tests on Windows when there is a space somewhere in the path.
+      Fixes bug 26437; bugfix on 0.2.2.4-alpha.

+ 1 - 1
src/ext/tinytest.c

@@ -145,7 +145,7 @@ testcase_run_forked_(const struct testgroup_t *group,
 	if (opt_verbosity>0)
 		printf("[forking] ");
 
-	snprintf(buffer, sizeof(buffer), "%s --RUNNING-FORKED %s %s%s",
+	snprintf(buffer, sizeof(buffer), "\"%s\" --RUNNING-FORKED %s %s%s",
 		 commandname, verbosity_flag, group->prefix, testcase->name);
 
 	memset(&si, 0, sizeof(si));