diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2006-12-30 01:18:18 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2006-12-30 01:18:18 +0000 |
commit | f8babb2524be4b18ced06634d930c03291c1f313 (patch) | |
tree | 1e6c7c21e40d3a37cafcf80002ec3b0d883aeeab /ext/List | |
parent | c8185ac54029b05b732120d080bda5abfdc295d5 (diff) | |
download | perl-f8babb2524be4b18ced06634d930c03291c1f313.tar.gz |
fix a test failing under -Dmad
p4raw-id: //depot/perl@29640
Diffstat (limited to 'ext/List')
-rwxr-xr-x | ext/List/Util/t/weak.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/List/Util/t/weak.t b/ext/List/Util/t/weak.t index 58745c7500..d0c3dff187 100755 --- a/ext/List/Util/t/weak.t +++ b/ext/List/Util/t/weak.t @@ -183,6 +183,9 @@ SKIP: { # Doesn't work for older perls, see bug [perl #24506] skip("Test does not work with perl < 5.8.3", 5) if $] < 5.008003; + # in a MAD build, constants have refcnt 2, not 1 + skip("Test does not work with MAD", 5) if exists $Config{mad}; + $a = eval '\"hello"'; ok(ref($a)) or print "# didn't get a ref from eval\n"; $b = $a; |