This commit broke Module::Runtime in debugging builds:
commit
ba75e9a42bd919d317a4f5deb1e487c13586929d
Author: David Mitchell <davem@iabyn.com>
Date: Fri Jan 6 14:59:54 2017 +0000
make OP_REF support boolean context
This commit restored the previous, behaviour:
commit
a10e04b588b6b10ac6d059efacd8dec25d14bdb3
Author: David Mitchell <davem@iabyn.com>
Date: Thu Jun 15 14:29:56 2017 +0100
pp_ref: do SvSETMAGIC(TARG)
But no test was added to make sure it stays fixed. Here is a test.
isnt_tainted $b, "list assign post tainted expression b";
}
+# Module::Runtime was temporarily broken between 5.27.0 and 5.27.1 because
+# ref() would fail an assertion in a tainted statement. (No ok() neces-
+# sary since it aborts when it fails.)
+() = defined $^X && ref \$^X;
+
# This may bomb out with the alarm signal so keep it last
SKIP: {