From 19d2bdc17e5767261b03cec04e2fbb690cdf67be Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Sun, 11 Aug 2013 21:00:26 -0300 Subject: t/op/filetest.t: On Android, don't try checking if ln exists with which Assume that it does -- even the most barebone of toolbox binaries provides ln, but not which. --- t/op/filetest.t | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/op/filetest.t b/t/op/filetest.t index 3ee50f1b2d..a67b73f3ce 100644 --- a/t/op/filetest.t +++ b/t/op/filetest.t @@ -99,8 +99,15 @@ like $@, qr/^The stat preceding -l _ wasn't an lstat at /, SKIP: { use Perl::OSType 'os_type'; if (os_type ne 'Unix') { skip "Not Unix", 3 } - chomp(my $ln = `which ln`); - if ( ! -e $ln ) { skip "No ln" , 3 } + if ( $^O =~ /android/ ) { + # Even the most basic toolbox in android provides ln, + # but not which. + $ln = "ln"; + } + else { + chomp(my $ln = `which ln`); + if ( ! -e $ln ) { skip "No ln" , 3 } + } lstat $ro_empty_file; `ln -s $ro_empty_file 1`; isnt(-l -e _, 1, 'stacked -l uses previous stat, not previous retval'); -- cgit v1.2.1