Handle failure indications output by zdump 2022a.

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'.
This commit is contained in:
Phil Ross 2022-03-17 20:47:00 +00:00
parent 30c08f9a60
commit 9684461ff1
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class TCDefinitions < Minitest::Test
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