Fix up IO::Compress tests
authorFather Chrysostomos <sprout@cpan.org>
Thu, 25 Jul 2013 07:32:49 +0000 (00:32 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Jul 2013 06:48:03 +0000 (23:48 -0700)
They were expecting \"abc" to return a constant value, but constant
folding no longer causes \ to return a read-only scalar.

cpan/IO-Compress/t/01misc.t
cpan/IO-Compress/t/compress/oneshot.pl

index 150fb69..6a6ad8c 100644 (file)
@@ -79,6 +79,9 @@ sub My::testParseParameters()
         like $@, mkErr("Parameter 'fred' not writable"), 
                 "wanted writable, got readonly";
 
+        skip '\\ returns mutable value in 5.19.3', 1
+            if $] >= 5.019003;
+
         eval { ParseParameters(1, {'fred' => [Parse_writable_scalar, 0]}, fred => \'abc') ; };
         like $@, mkErr("Parameter 'fred' not writable"), 
                 "wanted writable, got readonly";
index 14309ab..43c8dce 100644 (file)
@@ -183,7 +183,7 @@ sub run
                 use Config;
 
                 skip 'readonly + threads', 1
-                    if $Config{useithreads};
+                    if $Config{useithreads} || $] >= 5.019003;
 
                 
                 eval { $a = $Func->(\$in, \$out, TrailingData => \"abc") ;} ;