ACIL FM
Dark
Refresh
Current DIR:
/home/.cpan/build/Test-File-1.993-0/t
/
home
.cpan
build
Test-File-1.993-0
t
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
rt
-
chmod
Open
Rename
Delete
dm_skeleton.t
1.51 MB
chmod
View
DL
Edit
Rename
Delete
file_contains.t
5.05 MB
chmod
View
DL
Edit
Rename
Delete
file_contains_encoded.t
2.96 MB
chmod
View
DL
Edit
Rename
Delete
file_contains_utf8.t
2.97 MB
chmod
View
DL
Edit
Rename
Delete
file_mtime.t
3.02 MB
chmod
View
DL
Edit
Rename
Delete
file_sizes.t
4.71 MB
chmod
View
DL
Edit
Rename
Delete
line_counters.t
5.21 MB
chmod
View
DL
Edit
Rename
Delete
links.t
5.23 MB
chmod
View
DL
Edit
Rename
Delete
link_counts.t
2.47 MB
chmod
View
DL
Edit
Rename
Delete
load.t
158 B
chmod
View
DL
Edit
Rename
Delete
normalize.t
1.81 MB
chmod
View
DL
Edit
Rename
Delete
obviously_non_multi_user.t
1.53 MB
chmod
View
DL
Edit
Rename
Delete
owner.t
5.75 MB
chmod
View
DL
Edit
Rename
Delete
pod.t
129 B
chmod
View
DL
Edit
Rename
Delete
pod_coverage.t
161 B
chmod
View
DL
Edit
Rename
Delete
setup_common
1.89 MB
chmod
View
DL
Edit
Rename
Delete
test_dirs.t
1.42 MB
chmod
View
DL
Edit
Rename
Delete
test_files.t
9.99 MB
chmod
View
DL
Edit
Rename
Delete
test_manifest
282 B
chmod
View
DL
Edit
Rename
Delete
win32.t
929 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/.cpan/build/Test-File-1.993-0/t/obviously_non_multi_user.t
use Test::More 1; BEGIN { our $getpwuid_should_die = 0; our $getgrgid_should_die = 0; }; BEGIN{ no warnings; *CORE::GLOBAL::getpwuid = sub ($) { die "Fred" if $getpwuid_should_die }; *CORE::GLOBAL::getgrgid = sub ($) { die "Barney" if $getgrgid_should_die }; } use_ok( 'Test::File' ); ok( defined &{ "Test::File::_obviously_non_multi_user" }, "_win32 defined" ); # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # The ones that we know aren't multi-user subtest macos_single_user => sub { local $^O = 'MacOS'; ok( Test::File::_obviously_non_multi_user(), "Returns false for MacOS" ); }; subtest dos_single_user => sub { local $^O = 'dos'; ok( Test::File::_obviously_non_multi_user(), "Returns true for Win32" ); }; # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # The ones that use get*, but die subtest getpwuid_should_die => sub { local $^O = 'Fooey'; $getpwuid_should_die = 1; $getgrgid_should_die = 0; ok( Test::File::_obviously_non_multi_user(), 'getpwuid dying returns true' ); }; subtest getgrgid_should_die => sub { local $^O = 'Fooey'; $getpwuid_should_die = 0; $getgrgid_should_die = 1; ok( Test::File::_obviously_non_multi_user(), 'getgrgid dying returns true' ); }; # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # The ones that use get*, but don't die subtest nothing_dies => sub { local $^O = 'Fooey'; $getpwuid_should_die = 0; $getgrgid_should_die = 0; ok( ! Test::File::_obviously_non_multi_user(), 'getpwuid dying returns true' ); }; done_testing();
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply