summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPaul Marquess <paul.marquess@btinternet.com>2006-10-29 21:03:21 +0000
committerNicholas Clark <nick@ccl4.org>2006-10-29 22:01:17 +0000
commit802134916c56985ba8dc700565240474646eb9f7 (patch)
tree0d79e6fe642541b5df1c5b3cd90a8c4bd07b3af4 /ext
parent0ff97f2b57e694b0bb55285a757e6418641ac31a (diff)
downloadperl-802134916c56985ba8dc700565240474646eb9f7.tar.gz
[PATHCH] Scalar::Util::readonly & compression (was RE: Change 29117: [PATCH] IO::Compress modules)
From: "Paul Marquess" <paul.marquess@ntlworld.com> Message-ID: <02cf01c6fb9d$ade808a0$6501a8c0@myopwv.com> Date: Sun, 29 Oct 2006 21:03:21 -0000 p4raw-id: //depot/perl@29140
Diffstat (limited to 'ext')
-rw-r--r--ext/Compress/IO/Base/t/01misc.t15
1 files changed, 12 insertions, 3 deletions
diff --git a/ext/Compress/IO/Base/t/01misc.t b/ext/Compress/IO/Base/t/01misc.t
index 29b2a7645d..fd8cf66c34 100644
--- a/ext/Compress/IO/Base/t/01misc.t
+++ b/ext/Compress/IO/Base/t/01misc.t
@@ -56,9 +56,18 @@ sub My::testParseParameters()
like $@, mkErr("Parameter 'Fred' must be a signed int, got 'abc'"),
"wanted signed, got 'abc'";
- eval { ParseParameters(1, {'Fred' => [1, 1, Parse_writable_scalar, 0]}, Fred => 'abc') ; };
- like $@, mkErr("Parameter 'Fred' not writable"),
- "wanted writable, got readonly";
+
+ SKIP:
+ {
+ use Config;
+
+ skip 'readonly + threads', 1
+ if $Config{useithreads};
+
+ eval { ParseParameters(1, {'Fred' => [1, 1, Parse_writable_scalar, 0]}, Fred => 'abc') ; };
+ like $@, mkErr("Parameter 'Fred' not writable"),
+ "wanted writable, got readonly";
+ }
my @xx;
eval { ParseParameters(1, {'Fred' => [1, 1, Parse_writable_scalar, 0]}, Fred => \@xx) ; };