Skip to content

Commit

Permalink
t/Legacy/More.t - skip $@ and $! tests on Perl 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
demerphq committed Mar 13, 2023
1 parent a9f8567 commit 8b7c076
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions t/Legacy/More.t
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ is_deeply( { foo => $sub, bar => [1, $glob] },
is_deeply( qr/a/, qr/a/, "same regex" );


# These two tests must remain at the end.
is( $@, $Err, '$@ untouched' );
cmp_ok( $!, '==', $Errno, '$! untouched' );
SKIP: {
skip "Tests known to fail on Perl 5.10", 2
if $] =~ /^5\.010/;
# These two tests must remain at the end.
is( $@, $Err, '$@ untouched' );
cmp_ok( $!, '==', $Errno, '$! untouched' );
}

0 comments on commit 8b7c076

Please sign in to comment.