Skip to content

Commit

Permalink
test: use modified path in test
Browse files Browse the repository at this point in the history
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: libuv#184
Reviewed-by: Bert Belder <bertbelder@gmail.com>
  • Loading branch information
cjihrig authored and piscisaureus committed Feb 5, 2015
1 parent 3e75042 commit e5bdea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit e5bdea8

Please sign in to comment.