Şuanki Dizin: /proc/thread-self/root/usr/share/doc/perl-Test-Simple/t/Legacy/ |
Şuanki Dosya : //proc/thread-self/root/usr/share/doc/perl-Test-Simple/t/Legacy/no_tests.t |
#!perl -w # HARNESS-NO-STREAM # HARNESS-NO-PRELOAD BEGIN { if( $ENV{PERL_CORE} ) { chdir 't'; @INC = '../lib'; } } # Can't use Test.pm, that's a 5.005 thing. package My::Test; # This has to be a require or else the END block below runs before # Test::Builder's own and the ending diagnostics don't come out right. require Test::Builder; my $TB = Test::Builder->create; $TB->plan(tests => 3); package main; require Test::Simple; chdir 't'; push @INC, '../t/lib/'; require Test::Simple::Catch; my($out, $err) = Test::Simple::Catch::caught(); local $ENV{HARNESS_ACTIVE} = 0; Test::Simple->import(tests => 1); END { $TB->is_eq($out->read, <<OUT); 1..1 OUT $TB->is_eq($err->read, <<ERR); # No tests run! ERR $TB->is_eq($?, 255, "exit code"); $? = grep { !$_ } $TB->summary; }
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4