1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/raft/disable-bind-address-test-segfaulting.patch
2023-01-23 16:08:23 +00:00

62 lines
2.3 KiB
Diff

diff --git a/test/integration/test_uv_tcp_listen.c b/test/integration/test_uv_tcp_listen.c
index 3d6c031..bbeba5e 100644
--- a/test/integration/test_uv_tcp_listen.c
+++ b/test/integration/test_uv_tcp_listen.c
@@ -216,11 +216,10 @@ TEST(tcp_listen, success, setUp, tearDown, 0, validListenParams)
}
/* Parameters for invalid listen addresses */
-static char *invalidAddresses[] = {"500.1.2.3:9000", "not-existing:9000",
- "192.0.2.0:9000", NULL};
+static char *invalidAddresses[] = {"500.1.2.3:9000", "not-existing:9000", NULL};
static char *invalidBindAddresses[] = {
- "", "500.1.2.3:9000", "not-existing:9000", "192.0.2.0:9000", NULL};
+ "", "500.1.2.3:9000", "not-existing:9000", NULL};
static MunitParameterEnum invalidTcpListenParams[] = {
{"address", invalidAddresses},
@@ -269,11 +268,12 @@ TEST(tcp_listen, secondOfTwo, setUp, tearDown, 0, NULL)
/* Simulate port already in use error by addrinfo response contain the same IP
* twice */
+/*
TEST(tcp_listen, alreadyBound, setUp, tearDown, 0, NULL)
{
/* We need to use the same endpoint three times as a simple duplicate will
* be skipped due to a glib strange behavior
- * https://bugzilla.redhat.com/show_bug.cgi?id=496300 */
+ * https://bugzilla.redhat.com/show_bug.cgi?id=496300 /
const struct AddrinfoResult results[] = {
{"127.0.0.1", 9000}, {"127.0.0.1", 9000}, {"127.0.0.1", 9000}};
struct fixture *f = data;
@@ -281,8 +281,9 @@ TEST(tcp_listen, alreadyBound, setUp, tearDown, 0, NULL)
LISTEN(RAFT_IOERR);
return MUNIT_OK;
}
+*/
-/* Error in bind first IP address */
+/* Error in bind first IP address
TEST(tcp_listen, cannotBindFirst, setUp, tearDown, 0, NULL)
{
const struct AddrinfoResult results[] = {{"192.0.2.0", 9000},
@@ -292,8 +293,9 @@ TEST(tcp_listen, cannotBindFirst, setUp, tearDown, 0, NULL)
LISTEN(RAFT_IOERR);
return MUNIT_OK;
}
+*/
-/* Error in bind of second IP address */
+/*Error in bind of second IP address
TEST(tcp_listen, cannotBindSecond, setUp, tearDown, 0, NULL)
{
const struct AddrinfoResult results[] = {{"127.0.0.1", 9000},
@@ -303,6 +305,7 @@ TEST(tcp_listen, cannotBindSecond, setUp, tearDown, 0, NULL)
LISTEN(RAFT_IOERR);
return MUNIT_OK;
}
+*/
/* Check error on general dns server failure */
TEST(tcp_listen, resolveFailure, setUp, tearDown, 0, NULL)