This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Even more VMSifying (this time more like de-MacOSifying).
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 1 Jun 2002 15:03:57 +0000 (15:03 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 1 Jun 2002 15:03:57 +0000 (15:03 +0000)
p4raw-id: //depot/perl@16959

lib/Test/Harness/t/test-harness.t

index 83f6c0b..3cb0abb 100644 (file)
@@ -453,7 +453,9 @@ while (my($test, $expect) = each %samples) {
         is_deeply( {map { $_=>$totals->{$_} } keys %{$expect->{total}}},
                    $expect->{total},
                                                   "$test - totals" );
-        is_deeply( {map { $_=>$failed->{catfile($SAMPLE_TESTS, $test)}{$_} }
+        is_deeply( {map { $_=>$failed->{$^O eq 'macos' ?
+                                        catfile($SAMPLE_TESTS, $test) :
+                                        "$SAMPLE_TESTS/$test"}{$_} }
                     keys %{$expect->{failed}}},
                    $expect->{failed},
                                                   "$test - failed" );