summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-20 00:41:05 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-20 00:41:05 +0000
commit7e38dacfa2d1351316d04519c6f54eb4c4e0663d (patch)
treed409414c5aef55b1a85ab3df48c3a5be84b58bb6 /t
parenta7da9a42f1696505415b30f979c4f52d77a60af6 (diff)
downloadperl-7e38dacfa2d1351316d04519c6f54eb4c4e0663d.tar.gz
Retract #10725 (Hugo asked NOT to apply the patch)
p4raw-id: //depot/perl@10741
Diffstat (limited to 't')
-rwxr-xr-xt/op/study.t25
1 files changed, 1 insertions, 24 deletions
diff --git a/t/op/study.t b/t/op/study.t
index d08b8901e9..ea3b366f0b 100755
--- a/t/op/study.t
+++ b/t/op/study.t
@@ -2,7 +2,7 @@
# $RCSfile: study.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:30 $
-print "1..26\n";
+print "1..24\n";
$x = "abc\ndef\n";
study($x);
@@ -67,26 +67,3 @@ if (/^$_$/) {print "ok 23\n";} else {print "not ok 23\n";}
$* = 1; # test 3 only tested the optimized version--this one is for real
if ("ab\ncd\n" =~ /^cd/) {print "ok 24\n";} else {print "not ok 24\n";}
-
-# [ID 20010618.006] these two may loop
-{
- local $SIG{ALRM} = sub { die "timeout\n" };
- $_ = 'FGF';
- study;
- my $ok = eval { alarm(2); my $match = /G.F$/; alarm(0); !$match };
- if ($ok && !$@) {
- print "ok 25\n";
- } elsif ($@) {
- print "not ok 25\t# $@";
- } else {
- print "not ok 25\t# should not match\n";
- }
- $ok = eval { alarm(2); my $match = /[F]F$/; alarm(0); !$match };
- if ($ok && !$@) {
- print "ok 26\n";
- } elsif ($@) {
- print "not ok 26\t# $@";
- } else {
- print "not ok 26\t# should not match\n";
- }
-}