summaryrefslogtreecommitdiff
path: root/tests/test-spawn-pipe-child.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-11 21:38:40 +0100
committerBruno Haible <bruno@clisp.org>2023-01-11 21:38:40 +0100
commit47633a385f3f63b4a2d721fa7832ddd96792ce37 (patch)
treec566945e730fbecdc31665b975151305590c1634 /tests/test-spawn-pipe-child.c
parentb19433a961e6b10c112e98f2b9d3184bb8d091bd (diff)
downloadgnulib-47633a385f3f63b4a2d721fa7832ddd96792ce37.tar.gz
spawn-pipe tests: Fix test failure on Android.
* tests/test-spawn-pipe-child.c (main): Skip the is_open (STDERR_FILENO) check on Android.
Diffstat (limited to 'tests/test-spawn-pipe-child.c')
-rw-r--r--tests/test-spawn-pipe-child.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-spawn-pipe-child.c b/tests/test-spawn-pipe-child.c
index 071beb320f..1d8a27ffd4 100644
--- a/tests/test-spawn-pipe-child.c
+++ b/tests/test-spawn-pipe-child.c
@@ -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