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 /
t /
run /
Delete
Unzip
Name
Size
Permission
Date
Action
flib
[ DIR ]
drwxr-xr-x
2015-02-14 16:56
cloexec.t
5.73
KB
-r--r--r--
2014-12-27 11:49
dtrace.pl
3
B
-r--r--r--
2014-12-27 11:49
dtrace.t
4.86
KB
-r--r--r--
2014-12-27 11:49
exit.t
5.98
KB
-r--r--r--
2014-12-27 11:49
fresh_perl.t
16.34
KB
-r--r--r--
2014-12-27 11:49
locale.t
9.78
KB
-r--r--r--
2014-12-27 11:49
mad.t
984
B
-r--r--r--
2014-12-27 11:49
noswitch.t
250
B
-r--r--r--
2014-12-27 11:49
runenv.t
9.15
KB
-r--r--r--
2014-12-27 11:49
script.t
578
B
-r--r--r--
2014-12-27 11:49
switch0.t
154
B
-r--r--r--
2014-12-27 11:49
switchC.t
3.4
KB
-r--r--r--
2014-12-27 11:49
switchF.t
223
B
-r--r--r--
2014-12-27 11:49
switchF1.t
915
B
-r--r--r--
2014-12-27 11:49
switchF2.t
499
B
-r--r--r--
2014-12-27 11:49
switchI.t
849
B
-r--r--r--
2014-12-27 11:49
switchM.t
1.03
KB
-r--r--r--
2014-12-27 11:49
switcha.t
218
B
-r--r--r--
2014-12-27 11:49
switchd-78586.t
644
B
-r--r--r--
2014-12-27 11:49
switchd.t
6.93
KB
-r--r--r--
2014-12-27 11:49
switches.t
11.83
KB
-r--r--r--
2014-12-27 11:49
switchn.t
246
B
-r--r--r--
2014-12-27 11:49
switchp.t
314
B
-r--r--r--
2014-12-27 11:49
switcht.t
1.61
KB
-r--r--r--
2014-12-27 11:49
switchx.aux
396
B
-r--r--r--
2014-12-27 11:49
switchx.t
1.04
KB
-r--r--r--
2014-12-27 11:49
switchx2.aux
503
B
-r--r--r--
2014-12-27 11:49
switchx3.aux
50
B
-r--r--r--
2014-12-27 11:49
Save
Rename
#!./perl -w BEGIN { chdir 't' if -d 't'; @INC = qw(../lib lib); } BEGIN { require "./test.pl"; } # This test depends on t/lib/Devel/switchd*.pm. plan(tests => 19); my $r; my $filename = tempfile(); SKIP: { open my $f, ">$filename" or skip( "Can't write temp file $filename: $!" ); print $f <<'__SWDTEST__'; package Bar; sub bar { $_[0] * $_[0] } package Foo; sub foo { my $s; $s += Bar::bar($_) for 1..$_[0]; } package main; Foo::foo(3); __SWDTEST__ close $f; $| = 1; # Unbufferize. $r = runperl( switches => [ '-Ilib', '-f', '-d:switchd' ], progfile => $filename, args => ['3'], ); like($r, qr/^sub<Devel::switchd::import>;import<Devel::switchd>;DB<main,$::tempfile_regexp,9>;sub<Foo::foo>;DB<Foo,$::tempfile_regexp,5>;DB<Foo,$::tempfile_regexp,6>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;$/, 'Got debugging output: 1'); $r = runperl( switches => [ '-Ilib', '-f', '-d:switchd=a,42' ], progfile => $filename, args => ['4'], ); like($r, qr/^sub<Devel::switchd::import>;import<Devel::switchd a 42>;DB<main,$::tempfile_regexp,9>;sub<Foo::foo>;DB<Foo,$::tempfile_regexp,5>;DB<Foo,$::tempfile_regexp,6>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;$/, 'Got debugging output: 2'); $r = runperl( switches => [ '-Ilib', '-f', '-d:-switchd=a,42' ], progfile => $filename, args => ['4'], ); like($r, qr/^sub<Devel::switchd::unimport>;unimport<Devel::switchd a 42>;DB<main,$::tempfile_regexp,9>;sub<Foo::foo>;DB<Foo,$::tempfile_regexp,5>;DB<Foo,$::tempfile_regexp,6>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;sub<Bar::bar>;DB<Bar,$::tempfile_regexp,2>;$/, 'Got debugging output: 3'); } # [perl #71806] cmp_ok( runperl( # less is useful for something :-) switches => [ '"-Mless ++INC->{q-Devel/_.pm-}"' ], progs => [ '#!perl -d:_', 'sub DB::DB{} print scalar @{q/_</.__FILE__}', ], ), '>', 0, 'The debugger can see the lines of the main program under #!perl -d', ); like runperl( switches => [ '"-Mless ++INC->{q-Devel/_.pm-}"' ], progs => [ '#!perl -d:_', 'sub DB::DB{} print line=>__LINE__', ], ), qr/line2/, '#!perl -d:whatever does not throw line numbers off'; # [perl #48332] like( runperl( switches => [ '-Ilib', '-d:switchd_empty' ], progs => [ 'sub foo { print qq _1\n_ }', '*old_foo = \&foo;', '*foo = sub { print qq _2\n_ };', 'old_foo(); foo();', ], ), qr "1\r?\n2\r?\n", 'Subroutine redefinition works in the debugger [perl #48332]', ); # [rt.cpan.org #69862] like( runperl( switches => [ '-Ilib', '-d:switchd_empty' ], progs => [ 'sub DB::sub { goto &$DB::sub }', 'sub foo { print qq _1\n_ }', 'sub bar { print qq _2\n_ }', 'delete $::{foo}; eval { foo() };', 'my $bar = *bar; undef *bar; eval { &$bar };', ], ), qr "1\r?\n2\r?\n", 'Subroutines no longer found under their names can be called', ); # [rt.cpan.org #69862] like( runperl( switches => [ '-Ilib', '-d:switchd_empty' ], progs => [ 'sub DB::sub { goto &$DB::sub }', 'sub foo { goto &bar::baz; }', 'sub bar::baz { print qq _ok\n_ }', 'delete $::{bar::::};', 'foo();', ], ), qr "ok\r?\n", 'No crash when calling orphaned subroutine via goto &', ); # test when DB::DB is seen but not defined [perl #114990] like( runperl( switches => [ '-Ilib', '-d:nodb' ], prog => [ '1' ], stderr => 1, ), qr/^No DB::DB routine defined/, "No crash when *DB::DB exists but not &DB::DB", ); like( runperl( switches => [ '-Ilib' ], prog => 'sub DB::DB; BEGIN { $^P = 0x22; } for(0..9){ warn }', stderr => 1, ), qr/^No DB::DB routine defined/, "No crash when &DB::DB exists but isn't actually defined", ); # or seen and defined later is( runperl( switches => [ '-Ilib', '-d:nodb' ], # nodb.pm contains *DB::DB...if 0 prog => 'warn; sub DB::DB { print qq-ok\n-; exit }', stderr => 1, ), "ok\n", "DB::DB works after '*DB::DB if 0'", ); # [perl #115742] Recursive DB::DB clobbering its own pad like( runperl( switches => [ '-Ilib' ], progs => [ split "\n", <<'=' BEGIN { $^P = 0x22; } package DB; sub DB { my $x = 42; return if $__++; $^D |= 1 << 30; # allow recursive calls main::foo(); print $x//q-u-, qq-\n-; } package main; chop; sub foo { chop; } = ], stderr => 1, ), qr/42/, "Recursive DB::DB does not clobber its own pad", ); # [perl #118627] like( runperl( switches => [ '-Ilib', '-d:switchd_empty' ], prog => 'print @{q|_<-e|}', ), qr "use Devel::switchd_empty;(?:BEGIN|\r?\nprint)", # miniperl tacks a BEGIN block on to the same line 'Copy on write does not mangle ${"_<-e"}[0] [perl #118627]', ); # PERL5DB with embedded newlines { local $ENV{PERL5DB} = "sub DB::DB{}\nwarn"; is( runperl( switches => [ '-Ilib', '-ld' ], prog => 'warn', stderr => 1 ), "Warning: something's wrong.\n" ."Warning: something's wrong at -e line 1.\n", 'PERL5DB with embedded newlines', ); } # test that DB::goto works is( runperl( switches => [ '-Ilib', '-d:switchd_goto' ], prog => 'sub baz { print qq|hello;\n| } sub foo { goto &baz } foo()', stderr => 1, ), "goto<main::baz>;hello;\n", "DB::goto" ); # Test that %DB::lsub is not vivified is( runperl( switches => [ '-Ilib', '-d:switchd_empty' ], progs => ['sub DB::sub {} sub foo : lvalue {} foo();', 'print qq-ok\n- unless defined *DB::lsub{HASH}'], ), "ok\n", "%DB::lsub is not vivified" ); # Test setting of breakpoints without *DB::dbline aliased is( runperl( switches => [ '-Ilib', '-d:nodb' ], progs => [ split "\n", 'sub DB::DB { $DB::single = 0, return if $DB::single; print qq[ok\n]; exit } ${q(_<).__FILE__}{6} = 1; # set a breakpoint sub foo { die; # line 6 } foo(); ' ], stderr => 1 ), "ok\n", "setting breakpoints without *DB::dbline aliased" ); # [perl #121255] # Check that utf8 caches are flushed when $DB::sub is set is( runperl( switches => [ '-Ilib', '-d:switchd_empty' ], progs => [ split "\n", 'sub DB::sub{length($DB::sub); goto &$DB::sub} ${^UTF8CACHE}=-1; print eval qq|sub oo\x{25f} { 42 } sub ooooo\x{25f} { oo\x{25f}() } ooooo\x{25f}()| || $@, qq|\n|; ' ], stderr => 1 ), "42\n", 'UTF8 length caches on $DB::sub are flushed' ); # [perl #122771] -d conflicting with sort optimisations is( runperl( switches => [ '-Ilib', '-d:switchd_empty' ], prog => 'BEGIN { $^P &= ~0x4 } sort { $$b <=> $$a } (); print qq-42\n-', ), "42\n", '-d does not conflict with sort optimisations' );