xref: /openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Builder/current_test.t (revision f6246b7f478ea7b2b6df549ae5998f8112d22650)
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