Commits

Toby Inkster committed e6baa71

72destruction.t needs to be skipped if Scalar::Util::weaken is unavailable; add new test to MANIFEST

  • Participants
  • Parent commits ebc6c67

Comments (0)

Files changed (2)

 t/60struct_error.t
 t/61error.t
 t/71overloads.t
+t/72destruction.t
 t/80registryleak.t
 t/90threads.t
 t/data/callbacks_returning_undef.xml

File t/72destruction.t

 use strict;
 use warnings;
-use Test::More tests => 1;
+use Test::More;
+use Scalar::Util;
 use XML::LibXML;
 
+if (defined (&Scalar::Util::weaken))
+{
+	plan tests => 1;
+}
+else
+{
+	plan skip_all => 'Need Scalar::Util::weaken';
+}
+
 my $is_destroyed;
 BEGIN {
 	no warnings 'once';