summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-09 08:59:21 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-09 08:59:21 +0000
commit4210e2f66b35a304bfe2b0c1c7eb1f8d48a82407 (patch)
treeb34fc72b01c9ae9b6265fcf0718f12d4c17462ee
parent8b6e33c7886a0f01211e87223fa130b968e1d3a2 (diff)
downloadperl-4210e2f66b35a304bfe2b0c1c7eb1f8d48a82407.tar.gz
Make minitest pass (must skip if no dynaloading)
p4raw-id: //depot/perl@24773
-rwxr-xr-xt/op/goto_xs.t19
1 files changed, 11 insertions, 8 deletions
diff --git a/t/op/goto_xs.t b/t/op/goto_xs.t
index b775e3d1ba..2c95139b14 100755
--- a/t/op/goto_xs.t
+++ b/t/op/goto_xs.t
@@ -9,17 +9,20 @@
# guessing that if all of these work correctly, the bad ones will
# break correctly as well.
-chdir 't' if -d 't';
-@INC = '../lib';
-$ENV{PERL5LIB} = "../lib";
+BEGIN { $| = 1; }
+BEGIN {
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ $ENV{PERL5LIB} = "../lib";
# turn warnings into fatal errors
-$SIG{__WARN__} = sub { die "WARNING: @_" } ;
-
-BEGIN { $| = 1; }
-eval 'require Fcntl'
- or do { print "1..0\n# Fcntl unavailable, can't test XS goto.\n"; exit 0 };
+ $SIG{__WARN__} = sub { die "WARNING: @_" } ;
+ foreach (qw(Fcntl XS::APItest)) {
+ eval "require $_"
+ or do { print "1..0\n# $_ unavailable, can't test XS goto.\n"; exit 0 }
+ }
+}
print "1..11\n";
# We don't know what symbols are defined in platform X's system headers.