From: Collin Funk Date: Sun, 14 Jun 2026 18:11:41 +0000 (-0700) Subject: tests: date: test that multiple time zone abbreviations cause an error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a7d11181830b8016b9f030fa3da88516d77736a;p=thirdparty%2Fcoreutils.git tests: date: test that multiple time zone abbreviations cause an error * tests/date/date.pl (@Tests): Add two test cases. --- diff --git a/tests/date/date.pl b/tests/date/date.pl index 1941b99a31..53d65f8369 100755 --- a/tests/date/date.pl +++ b/tests/date/date.pl @@ -439,6 +439,11 @@ my @Tests = ['plus-unit-noadd', "-d '2024-06-15 12:00:00 +1 hour' '+%Y-%m-%dT%T%z'", {OUT=>"2024-06-15T12:00:00+0000"}], + # Test -d with multiple time zone abbreviations. + ['multiple-tz-abbrev1', "-d 'PDT PDT'", + {ERR=>"date: invalid date 'PDT PDT'\n"}, {EXIT=>1}], + ['multiple-tz-abbrev2', "-d '2026-06-14 PDT PDT'", + {ERR=>"date: invalid date '2026-06-14 PDT PDT'\n"}, {EXIT=>1}], ); $limits->{TIME_T_MAX} == $limits->{INTMAX_MAX}