Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.26
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
perl-Test-Simple /
t /
Legacy /
Tester /
Delete
Unzip
Name
Size
Permission
Date
Action
tbt_01basic.t
1.24
KB
-rw-r--r--
2020-10-22 03:10
tbt_02fhrestore.t
1.17
KB
-rw-r--r--
2020-10-22 03:10
tbt_03die.t
225
B
-rw-r--r--
2020-10-22 03:10
tbt_04line_num.t
196
B
-rw-r--r--
2020-10-22 03:10
tbt_05faildiag.t
824
B
-rw-r--r--
2020-10-22 03:10
tbt_06errormess.t
3.02
KB
-rw-r--r--
2020-10-22 03:10
tbt_07args.t
5.15
KB
-rw-r--r--
2020-10-22 03:10
tbt_08subtest.t
268
B
-rw-r--r--
2020-10-22 03:10
tbt_09do.t
603
B
-rw-r--r--
2020-10-22 03:10
tbt_09do_script.pl
215
B
-rw-r--r--
2020-10-22 03:10
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 {}