test: remove unnecessary #ifdef _WIN32

This is a back-port of commit 4d17337 from the master branch.
This commit is contained in:
Ben Noordhuis 2012-11-06 00:31:16 +01:00
parent 4c9e42d0e6
commit 2affa60e19

View File

@ -388,11 +388,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. */