mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-28 04:02:31 -04:00
distro: remove old patch on the test_net unit test
This commit is contained in:
parent
2637da194b
commit
b7ade832fc
5 changed files with 1 additions and 33 deletions
|
|
@ -1 +0,0 @@
|
|||
../rpm/01-test_net-disable-udp-send-on-unconnected.patch
|
||||
|
|
@ -22,9 +22,7 @@ Source100: gpgkey-742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB.gpg.asc
|
|||
BuildRequires: gnupg2
|
||||
%endif
|
||||
|
||||
# Test fails on F30+ aarch/s390x for unknown reason, but it is not neccassary for Knot DNS
|
||||
Patch1: 01-disable-unconnected-net-test.patch
|
||||
Patch2: 02-revert-AC_PROG_CC.patch
|
||||
Patch1: 01-revert-AC_PROG_CC.patch
|
||||
|
||||
# Required dependencies
|
||||
BuildRequires: autoconf
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
Author: Tomas Krizek <tomas.krizek@nic.cz>
|
||||
Date: 2019-02-28 14:26:56 +0100
|
||||
|
||||
test_net: disable UDP send on unconnected
|
||||
|
||||
This test started to fail with 5.0 kernel in F30+ on aarch64 and s390x.
|
||||
The functionality isn't used by Knot DNS, so disabling this test until
|
||||
the issue is resolved should be safe.
|
||||
|
||||
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1675235
|
||||
|
||||
diff --git a/tests/contrib/test_net.c b/tests/contrib/test_net.c
|
||||
index 0a22abbbc..6ec4bda31 100644
|
||||
--- a/tests/contrib/test_net.c
|
||||
+++ b/tests/contrib/test_net.c
|
||||
@@ -310,10 +310,6 @@ static void test_unconnected(void)
|
||||
r = net_dgram_recv(sock, buffer, buffer_len, TIMEOUT_SHORT);
|
||||
is_int(KNOT_ETIMEOUT, r, "UDP, receive timeout on unconnected socket");
|
||||
|
||||
- struct sockaddr_storage server_addr = addr_from_socket(server);
|
||||
- r = net_dgram_send(sock, buffer, buffer_len, &server_addr);
|
||||
- is_int(buffer_len, r, "UDP, send on defined address");
|
||||
-
|
||||
close(sock);
|
||||
|
||||
// TCP
|
||||
|
|
@ -22,9 +22,6 @@ Source100: gpgkey-742FA4E95829B6C5EAC6B85710BB7AF6FEBBD6AB.gpg.asc
|
|||
BuildRequires: gnupg2
|
||||
%endif
|
||||
|
||||
# Test fails on F30+ aarch/s390x for unknown reason, but it is not neccassary for Knot DNS
|
||||
Patch1: 01-test_net-disable-udp-send-on-unconnected.patch
|
||||
|
||||
# Required dependencies
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
|
|
|
|||
Loading…
Reference in a new issue