diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-05 11:23:01 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-03-05 11:23:38 -0800 |
commit | 4306bb6246d4bdf02c2f8bcfa4e78ef6539ed0bf (patch) | |
tree | 16b6e642a95d66e7f7291677b6d729b1d60b6967 /tests/misc | |
parent | 8f31074cb4c9b023ef0aa47a0ce34c92745169b6 (diff) | |
download | coreutils-4306bb6246d4bdf02c2f8bcfa4e78ef6539ed0bf.tar.gz |
date: fix newly-introduced %%-N bug
* src/date.c (adjust_resolution): Don’t mishandle %%-N.
* tests/misc/date.pl (pct-pct): New test.
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/date.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/misc/date.pl b/tests/misc/date.pl index ef7080e33..f40a37702 100755 --- a/tests/misc/date.pl +++ b/tests/misc/date.pl @@ -313,6 +313,9 @@ my @Tests = ['mtz4', '-u -d "09:00T" +%T', {OUT => '16:00:00'}], ['mtz5', '-u -d "09:00X" +%T', {OUT => '20:00:00'}], ['mtz6', '-u -d "09:00Z" +%T', {OUT => '09:00:00'}], + + # test with %%-N + ['pct-pct', '+%%-N', {OUT => '%-N'}], ); # Repeat the cross-dst test, using Jan 1, 2005 and every interval from 1..364. |