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 /
Tester /
Delete
Unzip
Name
Size
Permission
Date
Action
tbt_01basic.t
1.24
KB
-r--r--r--
2014-12-27 11:49
tbt_02fhrestore.t
1.17
KB
-r--r--r--
2014-12-27 11:49
tbt_03die.t
225
B
-r--r--r--
2014-12-27 11:49
tbt_04line_num.t
196
B
-r--r--r--
2014-12-27 11:49
tbt_05faildiag.t
824
B
-r--r--r--
2014-12-27 11:49
tbt_06errormess.t
3.03
KB
-r--r--r--
2014-12-27 11:49
tbt_07args.t
5.15
KB
-r--r--r--
2014-12-27 11:49
tbt_08subtest.t
248
B
-r--r--r--
2014-12-27 11:49
tbt_09do.t
472
B
-r--r--r--
2014-12-27 11:49
tbt_09do_script.pl
215
B
-r--r--r--
2014-12-27 11:49
Save
Rename
#!/usr/bin/perl use Test::Builder::Tester tests => 4; use Test::More; use Symbol; # create temporary file handles that still point indirectly # to the right place my $orig_o = gensym; my $orig_t = gensym; my $orig_f = gensym; tie *$orig_o, "My::Passthru", \*STDOUT; tie *$orig_t, "My::Passthru", \*STDERR; tie *$orig_f, "My::Passthru", \*STDERR; # redirect the file handles to somewhere else for a mo use Test::Builder; my $t = Test::Builder->new(); $t->output($orig_o); $t->failure_output($orig_f); $t->todo_output($orig_t); # run a test test_out("ok 1 - tested"); ok(1,"tested"); test_test("standard test okay"); # now check that they were restored okay ok($orig_o == $t->output(), "output file reconnected"); ok($orig_t == $t->todo_output(), "todo output file reconnected"); ok($orig_f == $t->failure_output(), "failure output file reconnected"); ##################################################################### package My::Passthru; sub PRINT { my $self = shift; my $handle = $self->[0]; print $handle @_; } sub TIEHANDLE { my $class = shift; my $self = [shift()]; return bless $self, $class; } sub READ {} sub READLINE {} sub GETC {} sub FILENO {}