This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update to the latest Test-Simple cpan dist
[perl5.git] / cpan / Test-Simple / t / Legacy / subtest / do.t
CommitLineData
2c4d5b9b
SH
1#!/usr/bin/perl -w
2
3# Test the idiom of running another test file as a subtest.
4
5use strict;
6use Test::More;
7
8pass("First");
9
b4514920 10my $file = "t/Legacy/subtest/for_do_t.test";
2c4d5b9b
SH
11ok -e $file, "subtest test file exists";
12
13subtest $file => sub { do $file };
14
15pass("Last");
16
17done_testing(4);