summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Ragwitz <rafl@debian.org>2010-04-02 20:25:03 +0200
committerJesse Vincent <jesse@bestpractical.com>2010-04-02 14:28:08 -0400
commitae533554a9c124f574bc4e6f57c895308d938681 (patch)
tree7d573d4bdb40fae8ed22e88eedd978e2e8e84acd
parent68e74c239d715a726d29ad7a0ffb3a84331f8547 (diff)
downloadperl-ae533554a9c124f574bc4e6f57c895308d938681.tar.gz
Add a TODO test for block evals segfaulting on syntax errors.
-rw-r--r--t/op/eval.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/op/eval.t b/t/op/eval.t
index 305d7f34ce..8220a4578f 100644
--- a/t/op/eval.t
+++ b/t/op/eval.t
@@ -6,7 +6,7 @@ BEGIN {
require './test.pl';
}
-print "1..105\n";
+print "1..106\n";
eval 'print "ok 1\n";';
@@ -594,3 +594,13 @@ eval {
};
print "ok\n";
EOP
+
+TODO: {
+ local $TODO = 'syntax errors in block evals segfault since 32e2a35d';
+ fresh_perl_is(<<'EOP', "ok\n", undef, 'segfault on syntax errors in block evals');
+# localize the hits hash so the eval ends up with the pad offset of a copy of it in its targ
+BEGIN { $^H |= 0x00020000 }
+eval q{ eval { + } };
+print "ok\n";
+EOP
+}