This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH - DUH] Synchronize bleadperl with version-0.60
[perl5.git] / lib / version.t
index 05c0965..055531c 100644 (file)
@@ -57,6 +57,12 @@ eval { my $test = $testobj > 1.0 };
 like($@, qr/Invalid version object/,
     "Bad subclass vcmp");
 
+# dummy up a redundant call to satify David Wheeler
+local $SIG{__WARN__} = sub { die $_[0] };
+eval 'use version;';
+unlike ($@, qr/^Subroutine main::qv redefined/,
+    "Only export qv once per package (to prevent redefined warnings)."); 
+
 sub BaseTests {
 
        my ($CLASS, $no_qv) = @_;