Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
Test-Simple /
t /
subtest /
Delete
Unzip
Name
Size
Permission
Date
Action
args.t
328
B
-r--r--r--
2014-12-27 11:49
bail_out.t
951
B
-r--r--r--
2014-12-27 11:49
basic.t
5.07
KB
-r--r--r--
2014-12-27 11:49
die.t
531
B
-r--r--r--
2014-12-27 11:49
do.t
274
B
-r--r--r--
2014-12-27 11:49
exceptions.t
1.81
KB
-r--r--r--
2014-12-27 11:49
for_do_t.test
112
B
-r--r--r--
2014-12-27 11:49
fork.t
1.22
KB
-r--r--r--
2014-12-27 11:49
implicit_done.t
479
B
-r--r--r--
2014-12-27 11:49
line_numbers.t
3.79
KB
-r--r--r--
2014-12-27 11:49
plan.t
1.34
KB
-r--r--r--
2014-12-27 11:49
predicate.t
4.75
KB
-r--r--r--
2014-12-27 11:49
singleton.t
712
B
-r--r--r--
2014-12-27 11:49
threads.t
469
B
-r--r--r--
2014-12-27 11:49
todo.t
5.3
KB
-r--r--r--
2014-12-27 11:49
wstat.t
369
B
-r--r--r--
2014-12-27 11:49
Save
Rename
#!/usr/bin/perl -w BEGIN { if( $ENV{PERL_CORE} ) { chdir 't'; @INC = ( '../lib', 'lib' ); } else { unshift @INC, 't/lib'; } } use strict; use warnings; use Test::Builder::NoOutput; use Test::More tests => 7; { my $tb = Test::Builder::NoOutput->create; $tb->child('one'); eval { $tb->child('two') }; my $error = $@; like $error, qr/\QYou already have a child named (one) running/, 'Trying to create a child with another one active should fail'; } { my $tb = Test::Builder::NoOutput->create; my $child = $tb->child('one'); ok my $child2 = $child->child('two'), 'Trying to create nested children should succeed'; eval { $child->finalize }; my $error = $@; like $error, qr/\QCan't call finalize() with child (two) active/, '... but trying to finalize() a child with open children should fail'; } { my $tb = Test::Builder::NoOutput->create; my $child = $tb->child('one'); undef $child; like $tb->read, qr/\QChild (one) exited without calling finalize()/, 'Failing to call finalize should issue an appropriate diagnostic'; ok !$tb->is_passing, '... and should cause the test suite to fail'; } { my $tb = Test::Builder::NoOutput->create; $tb->plan( tests => 7 ); for( 1 .. 3 ) { $tb->ok( $_, "We're on $_" ); $tb->diag("We ran $_"); } { my $indented = $tb->child; $indented->plan('no_plan'); $indented->ok( 1, "We're on 1" ); eval { $tb->ok( 1, 'This should throw an exception' ) }; $indented->finalize; } my $error = $@; like $error, qr/\QCannot run test (This should throw an exception) with active children/, 'Running a test with active children should fail'; ok !$tb->is_passing, '... and should cause the test suite to fail'; }