diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-04-25 22:57:01 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-26 14:44:24 -0300 |
commit | 1bab810ed8262b89df7cf0db6da7bbc56f379b24 (patch) | |
tree | 94955a08f5d06ed7d0bb06079422de83b6837b0d /dist/IO | |
parent | 4f7dee4ffa1d035e9a79938b7f9239e9e8d48b2a (diff) | |
download | perl-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.t | 6 |
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 { |