t/op/magic.t: Work around android only having an inbuilt pwd
authorBrian Fraser <fraserbn@gmail.com>
Wed, 24 Apr 2013 05:28:12 +0000 (02:28 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Sun, 26 Jan 2014 17:44:23 +0000 (14:44 -0300)
t/op/magic.t

index bef1f98..9253e91 100644 (file)
@@ -278,6 +278,9 @@ $$ = $pid; # Tests below use $$
     if ($^O eq 'qnx') {
        chomp($wd = `/usr/bin/fullpath -t`);
     }
+    elsif($^O =~ /android/) {
+        chomp($wd = `sh -c 'pwd'`);
+    }
     elsif($Is_Cygwin || $is_abs) {
        # Cygwin turns the symlink into the real file
        chomp($wd = `pwd`);