unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 9e86fbdb58d2e9ede46afe4986b0d8dc64f5fb37 672 bytes (raw)
name: gnu/packages/patches/knot-test_net_shortwrite-ensure-connection.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
This patch duplicates upstream commit 4144d1e, which helps ensure the
"test_net_shortwrite" test suite can succeed across all platforms by
deepening the pending-connection queue of the server it creates from 0
to 1.

See the original report at
https://gitlab.nic.cz/knot/knot-dns/-/issues/693

--- a/tests/contrib/test_net_shortwrite.c
+++ b/tests/contrib/test_net_shortwrite.c
@@ -88,7 +88,7 @@ int main(int argc, char *argv[])
 	int server = net_bound_socket(SOCK_STREAM, &addr, 0);
 	ok(server >= 0, "server: bind socket");
 
-	r = listen(server, 0);
+	r = listen(server, 1);
 	ok(r == 0, "server: start listening");
 
 	struct sockaddr *sa = (struct sockaddr *)&addr;

debug log:

solving 9e86fbdb58 ...
found 9e86fbdb58 in https://yhetil.org/guix-patches/11f47227ef927f18f0c8d77a26173247360128d9.1601991615.git.simon@simonsouth.net/

applying [1/1] https://yhetil.org/guix-patches/11f47227ef927f18f0c8d77a26173247360128d9.1601991615.git.simon@simonsouth.net/
diff --git a/gnu/packages/patches/knot-test_net_shortwrite-ensure-connection.patch b/gnu/packages/patches/knot-test_net_shortwrite-ensure-connection.patch
new file mode 100644
index 0000000000..9e86fbdb58

1:18: space before tab in indent.
 	int server = net_bound_socket(SOCK_STREAM, &addr, 0);
1:19: space before tab in indent.
 	ok(server >= 0, "server: bind socket");
1:20: trailing whitespace.
 
1:23: space before tab in indent.
 	ok(r == 0, "server: start listening");
1:24: trailing whitespace.
 
Checking patch gnu/packages/patches/knot-test_net_shortwrite-ensure-connection.patch...
Applied patch gnu/packages/patches/knot-test_net_shortwrite-ensure-connection.patch cleanly.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.

index at:
100644 9e86fbdb58d2e9ede46afe4986b0d8dc64f5fb37	gnu/packages/patches/knot-test_net_shortwrite-ensure-connection.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).