diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-11-16 01:58:36 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-11-16 01:58:36 +0000 |
commit | 0c5cc8384a84ad39f7788ed1c5092bc14a0431ce (patch) | |
tree | 9f4bdc58d40914da14377854f8b4461b89ba0029 /tests/misc | |
parent | 23a166d0e732b1a7b53848411635ca51844920a0 (diff) | |
download | coreutils-0c5cc8384a84ad39f7788ed1c5092bc14a0431ce.tar.xz |
tests: fix non portable date in recent test
* tests/misc/date.pl: Years < 1900 fail on solaris at least.
Reported by Assaf Gordon
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/date.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/misc/date.pl b/tests/misc/date.pl index b53ca81f9..7e45e9852 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"}], |