summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-02-21 15:06:10 +0000
committerNicholas Clark <nick@ccl4.org>2011-02-21 15:06:10 +0000
commit8c49cd2ecb031334c3b7b36adf2fa26415e7f538 (patch)
tree277cbd7a8f04d6dfd9e64d7011764ee2ae5f2f83 /t/test.pl
parente55b089a984517eb26e82f4ab40b82f3ef47b0eb (diff)
downloadperl-8c49cd2ecb031334c3b7b36adf2fa26415e7f538.tar.gz
Add skip_if_miniperl() to test.pl, and use it in op/hashassign.t and re/re.t
In both, skip blocks which have tests which require a module which needs dynamic loading, to make both pass again under minitest.
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index 1cadd15713..872556387c 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -366,6 +366,10 @@ sub skip {
last SKIP;
}
+sub skip_if_miniperl {
+ skip(@_) if !defined &DynaLoader::boot_DynaLoader;
+}
+
sub todo_skip {
my $why = shift;
my $n = @_ ? shift : 1;