corpus/t-Hang/t/01_Bogus.t
raw| 1 | # Bogus::Pass tests |
| 2 | use strict; |
| 3 | |
| 4 | use Test::More; |
| 5 | |
| 6 | plan tests => 2 ; |
| 7 | |
| 8 | pass( "Passed this test" ); |
| 9 | |
| 10 | # just spin and be interrupted by command_timeout |
| 11 | my $now = time; 1 while ( time - $now < 40 ); |
| 12 | |
| 13 | die "!!! TIMER DIDNT TIMEOUT -- SHOULDNT BE HERE !!!"; |
| 14 | |
| 15 | pass( "Won't reach this test" ); |
| 16 |