Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: remove unnecessary #ifdef _WIN32
Browse files Browse the repository at this point in the history
This is a back-port of commit 4d17337 from the master branch.
  • Loading branch information
bnoordhuis committed Nov 5, 2012
1 parent 4c9e42d commit 2affa60
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/test-spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 2affa60

Please sign in to comment.