Skip tests if Devel::Peek not built
Nicholas Clark [Sun, 31 Oct 2004 11:20:27 +0000 (11:20 +0000)]
p4raw-id: //depot/perl@23444

ext/threads/shared/t/sv_refs.t
ext/threads/t/end.t
ext/threads/t/join.t
lib/base/t/fields-base.t

index ae4d237..fd37f0f 100644 (file)
@@ -8,6 +8,10 @@ BEGIN {
         print "1..0 # Skip: no useithreads\n";
         exit 0;
     }
+    if ($Config{'extensions'} !~ /\bDevel\/Peek\b/) {
+       print "1..0 # Skip: Devel::Peek was not built\n";
+       exit 0;
+    }
 }
 
 
index 19cd704..351a989 100644 (file)
@@ -10,6 +10,10 @@ BEGIN {
         print "1..0 # Skip: no useithreads\n";
         exit 0;
     }
+    if ($Config{'extensions'} !~ /\bDevel\/Peek\b/) {
+       print "1..0 # Skip: Devel::Peek was not built\n";
+       exit 0;
+    }
 }
 
 use ExtUtils::testlib;
index cef059f..472d1d2 100644 (file)
@@ -6,6 +6,10 @@ BEGIN {
         print "1..0 # Skip: no useithreads\n";
         exit 0;
     }
+    if ($Config{'extensions'} !~ /\bDevel\/Peek\b/) {
+       print "1..0 # Skip: Devel::Peek was not built\n";
+       exit 0;
+    }
 }
 
 use ExtUtils::testlib;
index 04661c5..da4b5c7 100644 (file)
@@ -235,7 +235,11 @@ package main;
        my X $self = shift;
        $self = fields::new($self) unless ref $self;
        $self->{X1} = "x1";
-       use Devel::Peek; Dump($self);
+       # FIXME. This code is dead on blead becase the test is skipped.
+       # The test states that it's being skipped becaues restricted hashes
+       # don't support a feature. Presumably we need to make that feature
+       # supported. Bah.
+       # use Devel::Peek; Dump($self);
        $self->{_X2} = "_x2";
        return $self;
     }