projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d95a4
)
Add a test for [perl #17753].
author
Jarkko Hietaniemi
<jhi@iki.fi>
Tue, 15 Apr 2003 05:54:17 +0000
(
05:54
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Tue, 15 Apr 2003 05:54:17 +0000
(
05:54
+0000)
p4raw-id: //depot/perl@19215
t/op/undef.t
patch
|
blob
|
history
diff --git
a/t/op/undef.t
b/t/op/undef.t
index
f6e36a5
..
1d16994
100755
(executable)
--- a/
t/op/undef.t
+++ b/
t/op/undef.t
@@
-5,7
+5,7
@@
BEGIN {
@INC = '../lib';
}
-print "1..2
7
\n";
+print "1..2
8
\n";
print defined($a) ? "not ok 1\n" : "ok 1\n";
@@
-79,3
+79,9
@@
print $@ =~ /^Modification of a read/ ? "ok 23\n" : "not ok 23\n";
@foo = ( a => 1 );
print defined @foo ? "ok 27\n" : "not ok 27\n";
}
+
+{
+ # [perl #17753] segfault when undef'ing unquoted string constant
+ eval 'undef tcp';
+ print $@ =~ /^Can't modify constant item/ ? "ok 28\n" : "not ok 28\n";
+}