summaryrefslogtreecommitdiff
path: root/lib/Exporter.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-03-09 19:23:57 +0000
committerNicholas Clark <nick@ccl4.org>2007-03-09 19:23:57 +0000
commit452617c3f7a5f3708b2a912420c39479d85cb7e5 (patch)
treea0ea5fa90bf2f78eddb06898f7ef5dc80a8beeb9 /lib/Exporter.t
parent15fcae636016588132c47748c4e10dd810b45835 (diff)
downloadperl-452617c3f7a5f3708b2a912420c39479d85cb7e5.tar.gz
Make Exporter::Heavy correctly not warn when exporting a symbol only
declared in the export specification. Ensure that the test actually tests this. p4raw-id: //depot/perl@30529
Diffstat (limited to 'lib/Exporter.t')
-rw-r--r--lib/Exporter.t11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Exporter.t b/lib/Exporter.t
index 2fbfcfa43b..1639cc11f3 100644
--- a/lib/Exporter.t
+++ b/lib/Exporter.t
@@ -8,7 +8,7 @@ BEGIN {
}
# Can't use Test::Simple/More, they depend on Exporter.
-my $test = 1;
+my $test;
sub ok ($;$) {
my($ok, $name) = @_;
@@ -23,9 +23,12 @@ sub ok ($;$) {
}
-print "1..28\n";
-require Exporter;
-ok( 1, 'Exporter compiled' );
+BEGIN {
+ $test = 1;
+ print "1..28\n";
+ require Exporter;
+ ok( 1, 'Exporter compiled' );
+}
BEGIN {