unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob e12a8eb56c4e1a1b8309534b05c0a80ec1762cdd 900 bytes (raw)
name: packages/patches/apr-skip-getservbyname-test.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
22
23
24
25
 
--- test/testsock.c	2013-01-24 06:57:21.000000000 +0100
+++ test/testsock.c	2013-01-24 17:24:54.000000000 +0100
@@ -90,16 +90,22 @@
     rv = apr_sockaddr_info_get(&sa, NULL, APR_UNSPEC, 0, 0, p);
     APR_ASSERT_SUCCESS(tc, "Problem generating sockaddr", rv);
 
+    /* /etc/services is not available while compiling, so apr_getservbyname
+     * will always return APR_ENOENT. */
+#if 0
     rv = apr_getservbyname(sa, "ftp");
     APR_ASSERT_SUCCESS(tc, "Problem getting ftp service", rv);
     ABTS_INT_EQUAL(tc, 21, sa->port);
+#endif
 
     rv = apr_getservbyname(sa, "complete_and_utter_rubbish");
     APR_ASSERT_SUCCESS(tc, "Problem getting non-existent service", !rv);
 
+#if 0
     rv = apr_getservbyname(sa, "telnet");
     APR_ASSERT_SUCCESS(tc, "Problem getting telnet service", rv);
     ABTS_INT_EQUAL(tc, 23, sa->port);
+#endif
 }
 
 static apr_socket_t *setup_socket(abts_case *tc)

debug log:

solving e12a8eb56c4e1a1b8309534b05c0a80ec1762cdd ...
found e12a8eb56c4e1a1b8309534b05c0a80ec1762cdd in https://git.savannah.gnu.org/cgit/guix.git

(*) 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).