From e5bdea8ed6c9eb875a8c084853b9853f2373f1cf Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 5 Feb 2015 16:31:49 -0500 Subject: [PATCH] test: use modified path in test The Windows spawn_with_an_odd_path test builds a PATH variable that starts with ";.;". However, the old path is then used to run the test. This commit updates the test to use the new path. PR: https://github.com/libuv/libuv/pull/184 Reviewed-by: Bert Belder --- test/test-spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-spawn.c b/test/test-spawn.c index d3c0693b..9b003002 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -1015,7 +1015,7 @@ TEST_IMPL(spawn_with_an_odd_path) { char *path = getenv("PATH"); ASSERT(path != NULL); snprintf(newpath, 2048, ";.;%s", path); - SetEnvironmentVariable("PATH", path); + SetEnvironmentVariable("PATH", newpath); init_process_options("", exit_cb); options.file = options.args[0] = "program-that-had-better-not-exist";