On Fri, Dec 18, 2015 at 5:50 AM, David Reiser <[email protected]> wrote: > I’m trying to build gnutls 3.4.7 in OS X 10.11.2, and make check fails in > tests/no-signal > > The no-signal.log file says “sigpipe received” and nothing else. Other than 2 > skipped tests, all other tests pass.
It seems that macosx doesn't support the MSG_NOSIGNAL flag. With the attached patch you can skip this test. regards, Nikos
From fad54f9abd90b8ef62a1bd6e8e06d4a3fa85ae2f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos <[email protected]> Date: Fri, 18 Dec 2015 10:23:22 +0100 Subject: [PATCH] tests: don't run the no-signal test in systems which MSG_NOSIGNAL is not available --- tests/no-signal.c | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/tests/no-signal.c b/tests/no-signal.c index 2e541c9..00a2f04 100644 --- a/tests/no-signal.c +++ b/tests/no-signal.c @@ -35,17 +35,26 @@ int main() #else -#include <sys/types.h> -#include <netinet/in.h> -#include <sys/socket.h> -#include <sys/wait.h> -#include <arpa/inet.h> -#include <unistd.h> -#include <gnutls/gnutls.h> -#include <gnutls/dtls.h> -#include <signal.h> - -#include "utils.h" +# include <sys/types.h> +# include <netinet/in.h> +# include <sys/socket.h> +# include <sys/wait.h> +# include <arpa/inet.h> +# include <unistd.h> +# include <gnutls/gnutls.h> +# include <gnutls/dtls.h> +# include <signal.h> + +# ifndef MSG_NOSIGNAL + +int main() +{ + exit(77); +} + +# else + +# include "utils.h" static void sigpipe(int sig) @@ -233,4 +242,5 @@ void doit(void) start(); } +# endif /* MSG_NOSIGNAL */ #endif /* _WIN32 */ -- 2.5.0
_______________________________________________ Gnutls-help mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnutls-help
