xref: /openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Builder/current_test.t (revision 46035553bfdd96e63c94e32da0210227ec2e3cf1)
1#!/usr/bin/perl -w
2
3# Dave Rolsky found a bug where if current_test() is used and no
4# tests are run via Test::Builder it will blow up.
5
6use Test::Builder;
7$TB = Test::Builder->new;
8$TB->plan(tests => 2);
9print "ok 1\n";
10print "ok 2\n";
11$TB->current_test(2);
12