aboutsummaryrefslogtreecommitdiff
path: root/deps/uv/test/test-pipe-bind-error.c
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-05-24 14:26:32 -0700
committerisaacs <i@izs.me>2012-05-24 14:26:32 -0700
commit24de89bd0e47cb657afa386fa7b2d2ae94309254 (patch)
tree8c02717c994d5e99a7d089550d7a95562669c56a /deps/uv/test/test-pipe-bind-error.c
parentb4ed3c19697e875c289363381498a896347cbca6 (diff)
downloadandroid-node-v8-24de89bd0e47cb657afa386fa7b2d2ae94309254.tar.gz
android-node-v8-24de89bd0e47cb657afa386fa7b2d2ae94309254.tar.bz2
android-node-v8-24de89bd0e47cb657afa386fa7b2d2ae94309254.zip
Upgrade uv to 604802a
Diffstat (limited to 'deps/uv/test/test-pipe-bind-error.c')
-rw-r--r--deps/uv/test/test-pipe-bind-error.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/uv/test/test-pipe-bind-error.c b/deps/uv/test/test-pipe-bind-error.c
index b84d20f1ea..4e73b639b6 100644
--- a/deps/uv/test/test-pipe-bind-error.c
+++ b/deps/uv/test/test-pipe-bind-error.c
@@ -27,8 +27,10 @@
#ifdef _WIN32
# define BAD_PIPENAME "bad-pipe"
+# define UNLINK_PIPE(name)
#else
# define BAD_PIPENAME "/path/to/unix/socket/that/really/should/not/be/there"
+# define UNLINK_PIPE(name) remove(name)
#endif
@@ -45,6 +47,8 @@ TEST_IMPL(pipe_bind_error_addrinuse) {
uv_pipe_t server1, server2;
int r;
+ UNLINK_PIPE(TEST_PIPENAME);
+
r = uv_pipe_init(uv_default_loop(), &server1, 0);
ASSERT(r == 0);
r = uv_pipe_bind(&server1, TEST_PIPENAME);