diff options
Diffstat (limited to 't/op/time.t')
-rw-r--r-- | t/op/time.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/op/time.t b/t/op/time.t index 734b838dd8..f5ce3391c0 100644 --- a/t/op/time.t +++ b/t/op/time.t @@ -6,7 +6,7 @@ BEGIN { require './test.pl'; } -plan tests => 70; +plan tests => 72; # These tests make sure, among other things, that we don't end up # burning tons of CPU for dates far in the future. @@ -238,3 +238,9 @@ SKIP: { #rt #73040 like $warning, qr/^localtime\($small_time_f\) too small/; like $warning, qr/^localtime\($small_time_f\) failed/m; } + +{ + local $^W; + is scalar gmtime("NaN"), undef, '[perl #123495] gmtime(NaN)'; + is scalar localtime("NaN"), undef, 'localtime(NaN)'; +} |