windows: un-break the build

It was broken in fb64948.
This commit is contained in:
Bert Belder 2012-11-05 22:11:22 +01:00
parent fb64948746
commit 4c9e42d0e6

View File

@ -388,7 +388,13 @@ 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);
#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. */
options.env = NULL;