mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: fix periodic false failure in month alignment
* tests/ls/abmon-align.sh: Base relative month adjustment from the middle of the month, to avoid failures due to months being repeated. Fixes https://bugs.gnu.org/31644
This commit is contained in:
1 parent
fb1ca34140
commit
c8eb21c9c0
1 file changed
+2
-1
@@ -19,8 +19,9 @@
|
||||
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
|
||||
print_ver_ ls
|
||||
|
||||
mid_month="$(date +%Y-%m-15)" || framework_failure_
|
||||
for mon in $(seq -w 12); do
|
||||
touch -d"+$mon month" $mon.ts || framework_failure_
|
||||
touch -d"$mid_month +$mon month" $mon.ts || framework_failure_
|
||||
done
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user