[MKDoc-commit] [Petal] Skip test 071 when URI.pm not installed (William McKee)

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Thu Mar 3 13:17:51 GMT 2005


Log Message:
-----------
[Petal] Skip test 071 when URI.pm not installed (William McKee)

Modified Files:
--------------
    Petal:
        Changes
    Petal/t:
        071_Encode_Overloaded_Object.t
        072_Metal_Define_Slot.t
        073_Metal_Fill_Slot.t

-------------- next part --------------
Index: Changes
===================================================================
RCS file: /var/spool/cvs/Petal/Changes,v
retrieving revision 1.126
retrieving revision 1.127
diff -LChanges -LChanges -u -r1.126 -r1.127
--- Changes
+++ Changes
@@ -3,6 +3,7 @@
 2.16
     - Added Cookbook.pod documentation and associated tests from William McKee
     - Removed references to HTML::TreeBuilder and XML::Parser (William McKee)
+    - Skip test 071 when URI.pm not installed (William McKee)
 
 2.15 Wed Jan  5 15:31:00 2005
     - Fixed some 'used of uninitialized values' warnings
Index: 073_Metal_Fill_Slot.t
===================================================================
RCS file: /var/spool/cvs/Petal/t/073_Metal_Fill_Slot.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lt/073_Metal_Fill_Slot.t -Lt/073_Metal_Fill_Slot.t -u -r1.1 -r1.2
--- t/073_Metal_Fill_Slot.t
+++ t/073_Metal_Fill_Slot.t
@@ -3,7 +3,6 @@
 use warnings;
 use lib 'lib';
 use Petal;
-use URI;
 
 $Petal::DISK_CACHE   = 0;
 $Petal::MEMORY_CACHE = 0;
Index: 072_Metal_Define_Slot.t
===================================================================
RCS file: /var/spool/cvs/Petal/t/072_Metal_Define_Slot.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lt/072_Metal_Define_Slot.t -Lt/072_Metal_Define_Slot.t -u -r1.1 -r1.2
--- t/072_Metal_Define_Slot.t
+++ t/072_Metal_Define_Slot.t
@@ -3,7 +3,6 @@
 use warnings;
 use lib 'lib';
 use Petal;
-use URI;
 
 $Petal::DISK_CACHE   = 0;
 $Petal::MEMORY_CACHE = 0;
Index: 071_Encode_Overloaded_Object.t
===================================================================
RCS file: /var/spool/cvs/Petal/t/071_Encode_Overloaded_Object.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lt/071_Encode_Overloaded_Object.t -Lt/071_Encode_Overloaded_Object.t -u -r1.1 -r1.2
--- t/071_Encode_Overloaded_Object.t
+++ t/071_Encode_Overloaded_Object.t
@@ -1,9 +1,18 @@
 #!/usr/bin/perl
-use Test::More 'no_plan';
+use Test::More;
 use warnings;
 use lib 'lib';
 use Petal;
-use URI;
+
+eval {
+  require URI;
+};
+if( $@ ) {
+  plan skip_all => 'URI.pm not installed';
+}
+else {
+  plan tests => 1;
+}
 
 $Petal::DISK_CACHE   = 0;
 $Petal::MEMORY_CACHE = 0;


More information about the MKDoc-commit mailing list