projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: Accomodate FreeBSD return value for ssl connection.
[openvswitch]
/
tests
/
test-vconn.c
diff --git
a/tests/test-vconn.c
b/tests/test-vconn.c
index 5dd38f0f881d78d298ceb0d041c325247de5ab97..0b2b06355f1e368bf71b2bccdfc81bfcfd3e4d9d 100644
(file)
--- a/
tests/test-vconn.c
+++ b/
tests/test-vconn.c
@@
-159,8
+159,15
@@
test_refuse_connection(int argc OVS_UNUSED, char *argv[])
ovs_fatal(0, "unexpected vconn_connect() return value %d (%s)",
error, strerror(error));
}
ovs_fatal(0, "unexpected vconn_connect() return value %d (%s)",
error, strerror(error));
}
+ } else if (!strcmp(type, "unix")) {
+ CHECK_ERRNO(error, EPIPE);
+ } else if (!strcmp(type, "ssl")) {
+ if (error != EPROTO && error != ECONNRESET) {
+ ovs_fatal(0, "unexpected vconn_connect() return value %d (%s)",
+ error, strerror(error));
+ }
} else {
} else {
-
CHECK_ERRNO(error, !strcmp(type, "unix") ? EPIPE : EPROTO
);
+
ovs_fatal(0, "invalid connection type %s", type
);
}
vconn_close(vconn);
}
vconn_close(vconn);