From 9684461ff1edbcecdf508a6055a5acc1fcc17c1d Mon Sep 17 00:00:00 2001 From: Phil Ross Date: Thu, 17 Mar 2022 20:47:00 +0000 Subject: [PATCH] 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'. --- test/tc_definitions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tc_definitions.rb b/test/tc_definitions.rb index 675867e..757a134 100644 --- a/test/tc_definitions.rb +++ b/test/tc_definitions.rb @@ -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