summaryrefslogtreecommitdiff
path: root/t/comp/require.t
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2011-08-23 00:16:42 +1000
committerTony Cook <tony@develop-help.com>2011-08-23 00:16:42 +1000
commit3712c77bc49a626e2717a6289ed2e3948b64814e (patch)
tree560b6ca0d772a81d995b426aa8ad07221a44208e /t/comp/require.t
parent811a7562647ede60b9e0232a68b50a0bad613c37 (diff)
downloadperl-3712c77bc49a626e2717a6289ed2e3948b64814e.tar.gz
skip a test that requires Cwd under miniperl
Diffstat (limited to 't/comp/require.t')
-rw-r--r--t/comp/require.t20
1 files changed, 12 insertions, 8 deletions
diff --git a/t/comp/require.t b/t/comp/require.t
index 4200004113..233068036c 100644
--- a/t/comp/require.t
+++ b/t/comp/require.t
@@ -261,15 +261,19 @@ EOT
# Test "require func()" with abs path when there is no .pmc file.
++$::i;
-require Cwd;
-require File::Spec::Functions;
-eval {
- CORE::require(File::Spec::Functions::catfile(Cwd::getcwd(),"bleah.pm"));
-};
-if ($@ =~ /^This is an expected error/) {
- print "ok $i\n";
+if (defined &DynaLoader::boot_DynaLoader) {
+ require Cwd;
+ require File::Spec::Functions;
+ eval {
+ CORE::require(File::Spec::Functions::catfile(Cwd::getcwd(),"bleah.pm"));
+ };
+ if ($@ =~ /^This is an expected error/) {
+ print "ok $i\n";
+ } else {
+ print "not ok $i\n";
+ }
} else {
- print "not ok $i\n";
+ print "ok $i # SKIP Cwd may not be available in miniperl\n";
}