]> Savannah Git Hosting - gnulib.git/commitdiff
spawn-pipe tests: Fix test failure on Android.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 20:38:40 +0000 (21:38 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2023 20:38:40 +0000 (21:38 +0100)
* tests/test-spawn-pipe-child.c (main): Skip the is_open (STDERR_FILENO)
check on Android.

ChangeLog
tests/test-spawn-pipe-child.c

index 6374953ac68b58085804d09138a0b0906d03333d..e1821ed6a51cc2184b24cc7cb1599bb3128b2f61 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-11  Bruno Haible  <bruno@clisp.org>
+
+       spawn-pipe tests: Fix test failure on Android.
+       * tests/test-spawn-pipe-child.c (main): Skip the is_open (STDERR_FILENO)
+       check on Android.
+
 2023-01-11  Bruno Haible  <bruno@clisp.org>
 
        perror: Fix "perror clobbers strerror's buffer" problem on Android.
index 071beb320fb93fc4c787fc5aa3f329001df735da..1d8a27ffd413fd54430d23433883a8f405c7c716 100644 (file)
@@ -127,9 +127,9 @@ main (int argc, char *argv[])
     case 1:
       /* Expect fd 2 is closed.
          But on HP-UX 11, fd 2 gets automatically re-opened to /dev/null if it
-         was closed.  Similarly on native Windows.  Future POSIX will allow
-         this, see <http://austingroupbugs.net/view.php?id=173>.  */
-#if !(defined __hpux || (defined _WIN32 && ! defined __CYGWIN__))
+         was closed.  Similarly on Android and on native Windows.  Future POSIX
+         will allow this, see <http://austingroupbugs.net/view.php?id=173>.  */
+#if !(defined __hpux || defined __ANDROID__ || (defined _WIN32 && ! defined __CYGWIN__))
       if (!is_qemu)
         ASSERT (! is_open (STDERR_FILENO));
 #endif