kenahoo / Path-Class

Cross-platform path specification manipulation
http://search.cpan.org/dist/Path-Class/
15 stars 28 forks source link

01-basic.t fails on Android because of the $^O override #28

Open Hugmeir opened 10 years ago

Hugmeir commented 10 years ago
# perl -E 'say "$^O: $^V"'
android: v5.19.9
# perl -E 'use Cwd; say Cwd::cwd()'
/mnt/sdcard/src/.cpan/build/Path-Class-0.33-7dmUq1
# perl -E 'BEGIN{ $^O = "Unix" }use Cwd; say Cwd::cwd()'

#

That causes this test https://github.com/kenahoo/Path-Class/blob/master/t/01-basic.t#L84 to fail. Perhaps overriding $^O after loading Cwd would work -- that would at least get _backtrick_cwd working on some platforms. Otherwise, just skipping the test on Android would work fine.