summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-14 08:31:18 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-14 08:31:18 +0000
commit5eb567df529229d30d1a4d7c913a67cbd444dacb (patch)
treefa02c7d9cb669362e4fcd44463dfcd37d072303f
parent2e30e1e19507ead09ed955df51a21281bcf3ac88 (diff)
downloadperl-5eb567df529229d30d1a4d7c913a67cbd444dacb.tar.gz
Since the version module is use'd afterwards, use_ok needs to be
in a BEGIN block p4raw-id: //depot/perl@24831
-rw-r--r--lib/version.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/version.t b/lib/version.t
index 0bb0185067..bfb9c463a7 100644
--- a/lib/version.t
+++ b/lib/version.t
@@ -8,7 +8,10 @@ use Test::More tests => 183;
diag "Tests with base class" unless $ENV{PERL_CORE};
-use_ok("version"); # If we made it this far, we are ok.
+BEGIN {
+ use_ok("version", 0.30); # If we made it this far, we are ok.
+}
+
BaseTests("version");
diag "Tests with empty derived class" unless $ENV{PERL_CORE};