diff options
Diffstat (limited to 'deps/uv/test/test-spawn.c')
-rw-r--r-- | deps/uv/test/test-spawn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/uv/test/test-spawn.c b/deps/uv/test/test-spawn.c index d18464d872..48ab239bb5 100644 --- a/deps/uv/test/test-spawn.c +++ b/deps/uv/test/test-spawn.c @@ -402,7 +402,9 @@ TEST_IMPL(spawn_preserve_env) { options.stdio[1].data.stream = (uv_stream_t*) &out; options.stdio_count = 2; - ASSERT(setenv("ENV_TEST", "testval", 1) == 0); + r = putenv("ENV_TEST=testval"); + ASSERT(r == 0); + /* Explicitly set options.env to NULL to test for env clobbering. */ options.env = NULL; |