logo

utils-std

Collection of commonly available Unix tools
commit: 71398d833600220c6477b4af250b98f23abec755
parent 8a004f48623662afdb253e19f54cd24387785c62
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 23 Mar 2024 04:35:24 +0100

test-cmd/rm.t: Handle getdents non-determinism

Diffstat:

Mtest-cmd/rm.t4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test-cmd/rm.t b/test-cmd/rm.t @@ -72,8 +72,8 @@ POSIX rm(1p) step 2c, don't follow symlinks $ test -L 2c-symlinks/file $ test -L 2c-symlinks/dir $ printf '%s\n' y y | rm -r 2c-symlinks - rm: Remove '2c-symlinks/file' ? [y/N] y - rm: Remove '2c-symlinks/dir' ? [y/N] y + rm: Remove '2c-symlinks/(dir|file)' \? \[y/N\] y (re) + rm: Remove '2c-symlinks/(dir|file)' \? \[y/N\] y (re) $ test ! -e 2c-symlinks $ test -d 2c-origin $ test -f 2c-origin/file