lib/Archive/Tar/t/03_file.t Archive::Tar tests
lib/Archive/Tar/t/04_resolved_issues.t Archive::Tar tests
lib/Archive/Tar/t/99_clean.t Archive::Tar test cleanup
-lib/Archive/Tar/t/src/long/b Archive::Tar tests
-lib/Archive/Tar/t/src/short/b Archive::Tar tests
lib/Archive/Tar.pm Archive::Tar
lib/Attribute/Handlers/Changes Attribute::Handlers
lib/Attribute/Handlers/demo/demo2.pl Attribute::Handlers demo
#!perl
+use File::Spec ();
BEGIN {
if ($ENV{PERL_CORE}) {
}
}
+for my $d (qw(short long)) {
+ my $file = File::Spec->catfile($d,'b');
+ open F, '>', $file or die "Can't create $file: $!\n";
+ print F "bbbbbbbbbbb\n";
+ close F;
+}
+
sub output {
- $file = shift;
+ my $file = shift;
open F, '>', $file or die "Can't create $file: $!\n";
binmode F;
for (@_) {
is( scalar @files, scalar @add,
"Adding files");
is( $files[0]->name, 'b', " Proper name" );
- use Config;
- if ($ENV{PERL_CORE} and $Config{config_args} =~/Dmksymlinks/) {
- ok( !$files[0]->is_file, " Proper type" );
- }
- else {
- is( $files[0]->is_file, 1, " Proper type" );
- }
+ is( $files[0]->is_file, 1, " Proper type" );
like( $files[0]->get_content, qr/^bbbbbbbbbbb\s*$/,
" Content OK" );
#!perl
+use File::Spec;
BEGIN {
if ($ENV{PERL_CORE}) {
}
}
-unlink 'long/bar.tar', 'long/foo.tgz', 'short/bar.tar', 'short/foo.tgz';
+for my $d (qw(long short)) {
+ for my $f (qw(b bar.tar foo.tgz)) {
+ unlink File::Spec->catfile($d, $f);
+ }
+}
print "1..1\nok 1 - cleanup done\n";
+++ /dev/null
-bbbbbbbbbbb
+++ /dev/null
-bbbbbbbbbbb