15 # You have to do it this way or VMS will get confused.
16 printf "%s $test%s\n", $ok ? 'ok' : 'not ok',
17 $name ? " - $name" : '';
19 printf "# Failed test at line %d\n", (caller($Ok_Level))[2] unless $ok;
32 my $have_alarm = $Config{d_alarm};
36 local $SIG{ALRM} = sub { die "timeout\n" };
40 alarm(2) if $have_alarm;
42 alarm(0) if $have_alarm;
46 ok( !$match && !$@, 'testing studys that used to hang' );
58 # used to be a test for $*
80 ok(/(a*b*)(c*)/ && $1 eq 'aaabbb' && $2 eq 'ccc');
81 ok(/(a+b+c+)/ && $1 eq 'aaabbbccc');
104 # used to be a test for $*
105 ok("ab\ncd\n" =~ /^cd/m);
107 if ($^O eq 'os390' or $^O eq 'posix-bc') {
108 # Even with the alarm() OS/390 and BS2000 can't manage these tests
109 # (Perl just goes into a busy loop, luckily an interruptable one)
110 for (25..26) { print "not ok $_ # TODO compiler bug?\n" }
113 # [ID 20010618.006] tests 25..26 may loop
118 alarm_ok { /[F]F$/ };