xref: /openbsd-src/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Builder/current_test.t (revision 256a93a44f36679bee503f12e49566c2183f6181)
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 strict;
7use warnings;
8
9use Test::Builder;
10my $TB = Test::Builder->new;
11$TB->plan(tests => 2);
12print "ok 1\n";
13print "ok 2\n";
14$TB->current_test(2);
15