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

Commit

Permalink
test: remove stale socket in ipc_send_recv_pipe
Browse files Browse the repository at this point in the history
Fixes spurious test failures.
  • Loading branch information
bnoordhuis committed May 23, 2012
1 parent 2609e43 commit b69f8ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test-ipc-send-recv.c
Expand Up @@ -120,6 +120,11 @@ TEST_IMPL(ipc_send_recv_pipe) {
r = uv_pipe_init(uv_default_loop(), &ctx.send.pipe, 1);
ASSERT(r == 0);

#ifndef _WIN32
/* Clean up stale socket from previous test run. */
remove(TEST_PIPENAME);
#endif

r = uv_pipe_bind(&ctx.send.pipe, TEST_PIPENAME);
ASSERT(r == 0);

Expand Down

0 comments on commit b69f8ef

Please sign in to comment.