X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FAutoSplit.t;h=7cc680ef75f233ab43e91dca018d30880ea7e3c7;hb=ba690e3299357f01ba3a8cb5887c44f0790a0c35;hp=8d764c1eef13011048d10a2f39f1fe6096b31c2b;hpb=d1be9408a3c14848d30728674452e191ba5fffaa;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/AutoSplit.t b/lib/AutoSplit.t index 8d764c1..7cc680e 100644 --- a/lib/AutoSplit.t +++ b/lib/AutoSplit.t @@ -7,6 +7,10 @@ my $incdir; my $lib = '"-I../lib"'; # ok on unix, nt, The extra \" are for VMS BEGIN { chdir 't' if -d 't'; + if ($^O eq 'dos') { + print "1..0 # This test is not 8.3-aware.\n"; + exit 0; + } if ($^O eq 'MacOS') { $incdir = ":auto-$$"; $lib = '-x -I::lib:'; # -x overcomes MPW $Config{startperl} anomaly @@ -111,7 +115,7 @@ foreach (@tests) { } # test n+1 - is ($output, $args{Get}, "Output from autosplit()ing $args{Name}"); + cmp_ok ($output, 'eq', $args{Get}, "Output from autosplit()ing $args{Name}"); if ($args{Files}) { $args{Files} =~ s!/!:!gs if $^O eq 'MacOS'; @@ -303,7 +307,7 @@ AutoSplitting *INC**PATHSEP**MOD*.pm (*DIR**PATHSEP**MOD*) is (&*MOD*::obsolete, 0); is (&*MOD*::obsolete, 1); ## Sleep -2 +4 ## SameAgain True, so don't scrub this directory. IIRC DOS FAT filesystems have only 2 second granularity. @@ -334,7 +338,7 @@ AutoSplitting *INC**PATHSEP**MOD*.pm (*DIR**PATHSEP**MOD*) is (&*MOD*::skeleton, "bones", "skeleton"); eval {&*MOD*::gonner}; ok ($@ =~ m!^Can't locate auto/*MOD*/gonner.al in \@INC!, "Check &*MOD*::gonner is now a gonner") or print "# \$\@='$@'\n"; ## Sleep -2 +4 ## SameAgain True, so don't scrub this directory. ################################################################ @@ -364,7 +368,7 @@ AutoSplitting *INC**PATHSEP**MOD*.pm (*DIR**PATHSEP**MOD*) is (&*MOD*::ghost, "bump"); is (&*MOD*::zombie, "You didn't use fire.", "Are our zombies undead?"); ## Sleep -2 +4 ## SameAgain True, so don't scrub this directory. ################################################################ @@ -386,7 +390,7 @@ Without the timestamp check make sure that nothing happens is (&*MOD*::ghoul, "wail", "still haunted"); is (&*MOD*::zombie, "You didn't use fire.", "Are our zombies still undead?"); ## Sleep -2 +4 ## SameAgain True, so don't scrub this directory. ################################################################