summaryrefslogtreecommitdiff
path: root/dist/IO
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-04-25 22:57:01 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:24 -0300
commit1bab810ed8262b89df7cf0db6da7bbc56f379b24 (patch)
tree94955a08f5d06ed7d0bb06079422de83b6837b0d /dist/IO
parent4f7dee4ffa1d035e9a79938b7f9239e9e8d48b2a (diff)
downloadperl-1bab810ed8262b89df7cf0db6da7bbc56f379b24.tar.gz
dist/IO/t/io_pipe.t: Work around android only having an inbuilt echo
Diffstat (limited to 'dist/IO')
-rw-r--r--dist/IO/t/io_pipe.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/dist/IO/t/io_pipe.t b/dist/IO/t/io_pipe.t
index b7897bb2df..e4f5f190a5 100644
--- a/dist/IO/t/io_pipe.t
+++ b/dist/IO/t/io_pipe.t
@@ -108,7 +108,11 @@ if ($is_win32) {
$stdout = bless \*STDOUT, "IO::Handle";
$stdout->fdopen($pipe,"w");
print STDOUT "not ok 7\n";
- exec 'echo', 'not ok 8';
+ my @echo = 'echo';
+ if ( $^O =~ /android/ ) {
+ @echo = ('sh', '-c', q{echo $@}, '--');
+ }
+ exec @echo, 'not ok 8';
}
else
{