Remove the $ENV{PERL_CORE} boilerplate from Hash::Util's tests.
Nicholas Clark [Sun, 30 Aug 2009 13:52:02 +0000 (14:52 +0100)]
ext/Hash-Util/t/Util.t
t/TEST

index 7a52e8c..a7cd946 100644 (file)
@@ -2,10 +2,8 @@
 
 BEGIN {
     if ($ENV{PERL_CORE}) {
-       chdir 't' if -d 't';
-       @INC = '../lib';
        require Config; import Config;
-       keys %Config; # Silence warning
+       no warnings 'once';
        if ($Config{extensions} !~ /\bHash\/Util\b/) {
            print "1..0 # Skip: Hash::Util was not built\n";
            exit 0;
diff --git a/t/TEST b/t/TEST
index d5007ed..5cbe0e3 100755 (executable)
--- a/t/TEST
+++ b/t/TEST
@@ -30,7 +30,6 @@ my %temp_no_core =
      '../ext/Compress-Raw-Zlib' => 1,
      '../ext/Devel-PPPort' => 1,
      '../ext/Encode' => 1,
-     '../ext/Hash-Util' => 'fixme',
      '../ext/Hash-Util-FieldHash' => 'fixme',
      '../ext/I18N-Langinfo' => 'fixme',
      '../ext/IO-Compress' => 1,