Skip to content

Commit

Permalink
Handle failure indications output by zdump 2022a.
Browse files Browse the repository at this point in the history
zdump in 2022a outputs 'gmtime failed' or 'localtime failed' with the
timestamp in question when the local or UT cannot be determined for the
timestamp. Previous versions output 'NULL'.
  • Loading branch information
philr committed Mar 17, 2022
1 parent 30c08f9 commit 9684461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tc_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def check_zdump_line(zone, line, max_year)
end
end
else
assert_match(/\s=\sNULL\z/, line, "Unexpected zdump format")
assert_match(/(?:-?\d+\s\(gmtime failed\)\s=\s|\s=\s(?:NULL|-?\d+\s\(localtime failed\))\z)/, line, 'Unexpected zdump format')
end
end

Expand Down

0 comments on commit 9684461

Please sign in to comment.