+2023-01-17 Bruno Haible <bruno@clisp.org>
+
+ execute tests: Avoid test failure on Android.
+ * tests/test-execute-main.c (main): Reset the SIGPIPE handler to
+ default.
+
2023-01-15 Bruno Haible <bruno@clisp.org>
fpending: Fix compilation error with NDK ≥ r14b and Android API < 23.
const char *progname = "test-execute-child";
int test = atoi (argv[2]);
+#if defined __ANDROID__
+ /* On Android 11, when this test is executed through 'make' (GNU make 4.4) and
+ build-aux/test-driver, i.e. through
+ make check TESTS=test-execute.sh
+ or
+ rm -f test-execute.sh.log; make test-execute.sh.log
+ the signal handler for SIGPIPE is set to SIG_IGN. This causes the tests
+ 3 and 4 to fail. Work around it by resetting the signal handler for
+ SIGPIPE to the default. */
+ signal (SIGPIPE, SIG_DFL);
+#endif
+
switch (test)
{
case 14: