win,test: change format of TEST_PIPENAME's
So `WaitNamedPipe()` doesn't fail. Increase the number of clients in `pipe_connect_multiple` so `CreateFile()` returns `ERROR_PIPE_BUSY` and the codepath leading to `WaitNamedPipe()` is exercised.
This commit is contained in:
parent
3300502231
commit
96637d032f
@ -50,9 +50,9 @@
|
||||
#define TEST_PORT_3 9125
|
||||
|
||||
#ifdef _WIN32
|
||||
# define TEST_PIPENAME "\\\\?\\pipe\\uv-test"
|
||||
# define TEST_PIPENAME_2 "\\\\?\\pipe\\uv-test2"
|
||||
# define TEST_PIPENAME_3 "\\\\?\\pipe\\uv-test3"
|
||||
# define TEST_PIPENAME "\\\\.\\pipe\\uv-test"
|
||||
# define TEST_PIPENAME_2 "\\\\.\\pipe\\uv-test2"
|
||||
# define TEST_PIPENAME_3 "\\\\.\\pipe\\uv-test3"
|
||||
#else
|
||||
# define TEST_PIPENAME "/tmp/uv-test-sock"
|
||||
# define TEST_PIPENAME_2 "/tmp/uv-test-sock2"
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
static int connection_cb_called = 0;
|
||||
static int connect_cb_called = 0;
|
||||
|
||||
#define NUM_CLIENTS 4
|
||||
#define NUM_CLIENTS 10
|
||||
|
||||
typedef struct {
|
||||
uv_pipe_t pipe_handle;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user