svn commit: r1936967 - apr/apr/trunk/test

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <178610941688.3577297.5516894761153213979@svn03-he-fi>
Author: covener
Date: Fri Aug  7 13:30:16 2026
New Revision: 1936967

Log:
copy sigpipe stuff from other memcache mock test

silently ended ./testall in backport

Modified:
   apr/apr/trunk/test/testmemcache.c

Modified: apr/apr/trunk/test/testmemcache.c
==============================================================================
--- apr/apr/trunk/test/testmemcache.c	Fri Aug  7 13:17:10 2026	(r1936966)
+++ apr/apr/trunk/test/testmemcache.c	Fri Aug  7 13:30:16 2026	(r1936967)
@@ -815,6 +815,11 @@ static void test_version_responses(abts_
 {
     apr_status_t rv;
     char *result;
+#ifdef SIGPIPE
+    apr_sigfunc_t *old_action;
+
+    old_action = apr_signal(SIGPIPE, SIG_IGN);
+#endif
 
     /* --- good response ------------------------------------------------ */
     abts_log_message("version test: sending 'VERSION 1.5.22\\r\\n', expecting APR_SUCCESS");
@@ -851,6 +856,10 @@ static void test_version_responses(abts_
     abts_log_message("version test: rv=%d result='%s'", rv, result ? result : "(null)");
     ABTS_ASSERT(tc, "single-char VERSION should succeed", rv == APR_SUCCESS);
     ABTS_STR_EQUAL(tc, "1", result);
+
+#ifdef SIGPIPE
+    apr_signal(SIGPIPE, old_action);
+#endif
 }
 
 abts_suite *testmemcache(abts_suite * suite)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.