| 1 | # ID 20020716.013, the exit code would become 0 if the test died | ||
| 2 | # before a plan. | ||
| 3 | |||
| 4 | 1 | require Test::Simple; | |
| 5 | |||
| 6 | 1 | push @INC, 't/lib'; | |
| 7 | 1 | require Test::Simple::Catch; | |
| 8 | 1 | my($out, $err) = Test::Simple::Catch::caught(); | |
| 9 | |||
| 10 | 1 | close STDERR; | |
| 11 | 1 | die "Knife?"; | |
| 12 | |||
| 13 | 0 | Test::Simple->import(tests => 3); | |
| 14 | |||
| 15 | 0 | ok(1); | |
| 16 | 0 | ok(1); | |
| 17 | 0 | ok(1); |