diff --git a/test/test-spawn.c b/test/test-spawn.c index 9418e191..48ab239b 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -402,11 +402,7 @@ TEST_IMPL(spawn_preserve_env) { options.stdio[1].data.stream = (uv_stream_t*) &out; options.stdio_count = 2; -#ifdef _WIN32 r = putenv("ENV_TEST=testval"); -#else - r = setenv("ENV_TEST", "testval", 1); -#endif ASSERT(r == 0); /* Explicitly set options.env to NULL to test for env clobbering. */