diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-06-14 08:31:18 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-06-14 08:31:18 +0000 |
commit | 5eb567df529229d30d1a4d7c913a67cbd444dacb (patch) | |
tree | fa02c7d9cb669362e4fcd44463dfcd37d072303f | |
parent | 2e30e1e19507ead09ed955df51a21281bcf3ac88 (diff) | |
download | perl-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.t | 5 |
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}; |