From: Pádraig Brady
Date: Wed, 16 Nov 2016 01:58:36 +0000 (+0000) Subject: tests: fix non portable date in recent test X-Git-Tag: v8.26~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5cc8384a84ad39f7788ed1c5092bc14a0431ce;p=thirdparty%2Fcoreutils.git tests: fix non portable date in recent test * tests/misc/date.pl: Years < 1900 fail on solaris at least. Reported by Assaf Gordon --- diff --git a/tests/misc/date.pl b/tests/misc/date.pl index b53ca81f92..7e45e98524 100755 --- a/tests/misc/date.pl +++ b/tests/misc/date.pl @@ -86,10 +86,10 @@ my @Tests = ['W92-2', "--date '1992-1-5' +%W", {OUT=>"00"}], ['W92-3', "--date '1992-1-6' +%W", {OUT=>"01"}], - ['q-1', "--date '1000-1-1' +%q", {OUT=>"1"}], - ['q-2', "--date '1000-4-1' +%q", {OUT=>"2"}], - ['q-3', "--date '1000-7-1' +%q", {OUT=>"3"}], - ['q-4', "--date '1000-10-1' +%q", {OUT=>"4"}], + ['q-1', "--date '2016-1-1' +%q", {OUT=>"1"}], + ['q-2', "--date '2016-4-1' +%q", {OUT=>"2"}], + ['q-3', "--date '2016-7-1' +%q", {OUT=>"3"}], + ['q-4', "--date '2016-10-1' +%q", {OUT=>"4"}], ['millen-1', "--date '1998-1-1 3 years' +%Y", {OUT=>"2001"}],