tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 46501cdd1821812c8ec5a0008af3dca6365f5b96
parent d2bd358924802b2bf0f3ecf8fb73aae83382a3df
Author: Alexander Færøy <ahf@torproject.org>
Date:   Thu, 21 Jun 2018 04:32:42 +0200

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

See: https://bugs.torproject.org/26437

Diffstat:
Achanges/bug26437 | 3+++
Msrc/ext/tinytest.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/changes/bug26437 b/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. diff --git a/src/ext/tinytest.c b/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));