diff options
author | Alin Gabriel Serdean <aserdean@ovn.org> | 2018-04-30 23:44:00 +0300 |
---|---|---|
committer | Alin Gabriel Serdean <aserdean@ovn.org> | 2018-05-08 18:28:51 +0300 |
commit | 5fffa669a7c14952305bd923ad423d6839fc3bf2 (patch) | |
tree | 2cc9fabe88c8b0025bbfa020f084d75b74b73b70 /tests | |
parent | 09f37a1b855bb2e774fa6b75405083977fdc3aa2 (diff) | |
download | openvswitch-5fffa669a7c14952305bd923ad423d6839fc3bf2.tar.gz |
windows: Fix return value in case of named pipe send failure
Named pipes should emulate UNIX socket behavior.
Until now the named pipes returned WSA (Windows implementation of BSD sockets
errors) return codes, for send errors.
In case of a disconnected named pipe (UNIX socket) send error, we should return
EPIPE.
Fixes: `check_logs` transient errors when checking for EPIPE.
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Alin Balutoiu <abalutoiu@cloudbasesolutions.com>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-vconn.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/test-vconn.c b/tests/test-vconn.c index 0c17a8395..8b8d12e36 100644 --- a/tests/test-vconn.c +++ b/tests/test-vconn.c @@ -163,11 +163,7 @@ test_refuse_connection(struct ovs_cmdl_context *ctx) error, ovs_strerror(error)); } } else if (!strcmp(type, "unix")) { -#ifndef _WIN32 CHECK_ERRNO(error, EPIPE); -#else - CHECK_ERRNO(error, WSAECONNRESET); -#endif } else if (!strcmp(type, "ssl")) { if (error != EPROTO && error != ECONNRESET) { ovs_fatal(0, "unexpected vconn_connect() return value %d (%s)", |