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 /
ext /
B /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
OptreeCheck.pm
31.93
KB
-r--r--r--
2014-12-27 11:49
b.t
13.51
KB
-r--r--r--
2014-12-27 11:49
concise-xs.t
11.9
KB
-r--r--r--
2014-12-27 11:49
concise.t
13.9
KB
-r--r--r--
2014-12-27 11:49
f_map
707
B
-r--r--r--
2014-12-27 11:48
f_map.t
14.32
KB
-r--r--r--
2014-12-27 11:49
f_sort
2.43
KB
-r--r--r--
2014-12-27 11:48
f_sort.t
25.32
KB
-r--r--r--
2014-12-27 11:49
o.t
2
KB
-r--r--r--
2014-12-27 11:48
optree_check.t
6.67
KB
-r--r--r--
2014-12-27 11:49
optree_concise.t
14.5
KB
-r--r--r--
2014-12-27 11:49
optree_constants.t
15.5
KB
-r--r--r--
2014-12-27 11:48
optree_misc.t
17.38
KB
-r--r--r--
2014-12-27 11:49
optree_samples.t
22.36
KB
-r--r--r--
2014-12-27 11:49
optree_sort.t
8.05
KB
-r--r--r--
2014-12-27 11:49
optree_specials.t
14.43
KB
-r--r--r--
2014-12-27 11:49
optree_varinit.t
12.02
KB
-r--r--r--
2014-12-27 11:49
pragma.t
2.77
KB
-r--r--r--
2014-12-27 11:48
showlex.t
2.79
KB
-r--r--r--
2014-12-27 11:49
terse.t
2.63
KB
-r--r--r--
2014-12-27 11:48
walkoptree.t
1.98
KB
-r--r--r--
2014-12-27 11:48
xref.t
2.75
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!./perl -w BEGIN { unshift @INC, 't'; require Config; if (($Config::Config{'extensions'} !~ /\bB\b/) ){ print "1..0 # Skip -- Perl configured without B module\n"; exit 0; } require 'test.pl'; } use strict; use Config; use File::Spec; use File::Path; my $path = File::Spec->catdir( 'lib', 'B' ); unless (-d $path) { mkpath( $path ) or skip_all( 'Cannot create fake module path' ); } my $file = File::Spec->catfile( $path, 'success.pm' ); local *OUT; open(OUT, '>', $file) or skip_all( 'Cannot write fake backend module'); print OUT while <DATA>; close *OUT; plan( 9 ); # And someone's responsible. # use() makes it difficult to avoid O::import() require_ok( 'O' ); my @lines = get_lines( '-MO=success,foo,bar' ); is( $lines[0], 'Compiling!', 'Output should not be saved without -q switch' ); is( $lines[1], '(foo) <bar>', 'O.pm should call backend compile() method' ); is( $lines[2], '[]', 'Nothing should be in $O::BEGIN_output without -q' ); is( $lines[3], '-e syntax OK', 'O.pm should not munge perl output without -qq'); @lines = get_lines( '-MO=-q,success,foo,bar' ); isnt( $lines[1], 'Compiling!', 'Output should not be printed with -q switch' ); SKIP: { skip( '-q redirection does not work without PerlIO', 2) unless $Config{useperlio}; is( $lines[1], "[Compiling!", '... but should be in $O::BEGIN_output' ); @lines = get_lines( '-MO=-qq,success,foo,bar' ); is( scalar @lines, 3, '-qq should suppress even the syntax OK message' ); } @lines = get_lines( '-MO=success,fail' ); like( $lines[1], qr/fail at .eval/, 'O.pm should die if backend compile() does not return a subref' ); sub get_lines { my $compile = shift; split(/[\r\n]+/, runperl( switches => [ '-Ilib', $compile ], prog => 1, stderr => 1 )); } END { 1 while unlink($file); rmdir($path); # not "1 while" since there might be more in there } __END__ package B::success; $| = 1; print "Compiling!\n"; sub compile { return 'fail' if ($_[0] eq 'fail'); print "($_[0]) <$_[1]>\n"; return sub { print "[$O::BEGIN_output]\n" }; } 1;