Fix Archive::Tar test when perl is built with -Dmksymlinks
Rafael Garcia-Suarez [Thu, 23 Jun 2005 16:18:21 +0000 (16:18 +0000)]
p4raw-id: //depot/perl@24961

lib/Archive/Tar/t/02_methods.t

index d8c0ae9..82f3777 100644 (file)
@@ -221,7 +221,7 @@ END { unlink $COMPRESS_FILE; }
         is( scalar @files, scalar @add,
                                     "Adding files");
         is( $files[0]->name, 'b',   "   Proper name" );
-        is( $files[0]->is_file, 1,  "   Proper type" );
+        is( $files[0]->is_file, !-l $add[0] && -f _,  "   Proper type" );
         like( $files[0]->get_content, qr/^bbbbbbbbbbb\s*$/,
                                     "   Content OK" );