summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-11-12 23:59:15 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-26 14:44:23 -0300
commitf11cc18971ae625b0481abed83e55bc0d4eb8392 (patch)
tree867a3779392082831456c5e4b05f500a9f7a17c3 /t
parent19d2bdc17e5767261b03cec04e2fbb690cdf67be (diff)
downloadperl-f11cc18971ae625b0481abed83e55bc0d4eb8392.tar.gz
t/io/fs.t: Handle Android's pwd being a shell builtin
Diffstat (limited to 't')
-rw-r--r--t/io/fs.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/io/fs.t b/t/io/fs.t
index bec4dc9560..5303a577aa 100644
--- a/t/io/fs.t
+++ b/t/io/fs.t
@@ -19,6 +19,10 @@ elsif ($^O eq 'VMS') {
elsif ($ENV{PWD}) {
$wd = $ENV{PWD};
}
+elsif ( $^O =~ /android/ ) {
+ # On Android, pwd is a shell builtin, so plain `pwd` won't cut it
+ $wd = `sh -c pwd`;
+}
else {
$wd = `pwd`;
}