unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 63b949e576f796635a8c4b9394bb870b98b7305a 707 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
20
21
 
commit 4144d1e9b73ce18d919d980e803e935ba4e7c109
Author: Simon South <simon@simonsouth.net>
Date:   Tue Sep 29 14:53:30 2020 -0400

    test_net_shortwrite: ensure connection can succeed
    
    closes #693

diff --git a/tests/contrib/test_net_shortwrite.c b/tests/contrib/test_net_shortwrite.c
index 8c8cf92ec..69bab7155 100644
--- 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 63b949e576 ...
found 63b949e576 in https://yhetil.org/guix-patches/e15bcd63e47c9d07496579d5b2a271b5f22382e1.1601941844.git.simon@simonsouth.net/

applying [1/1] https://yhetil.org/guix-patches/e15bcd63e47c9d07496579d5b2a271b5f22382e1.1601941844.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..63b949e576

1:12: trailing whitespace.
    
1:20: space before tab in indent.
 	int server = net_bound_socket(SOCK_STREAM, &addr, 0);
1:21: space before tab in indent.
 	ok(server >= 0, "server: bind socket");
1:22: trailing whitespace.
 
1:25: space before tab in indent.
 	ok(r == 0, "server: start listening");
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 2 whitespace errors
warning: 7 lines add whitespace errors.

index at:
100644 63b949e576f796635a8c4b9394bb870b98b7305a	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).