Skip to content

Commit 3ebac82

Browse files
committed
adjust the rm2 tests
1 parent f1a56c8 commit 3ebac82

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

util/build-gnu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ sed -i -e "s|removed directory 'a/'|removed directory 'a'|g" tests/rm/v-slash.sh
243243
# 'rel' doesn't exist. Our implementation is giving a better message.
244244
sed -i -e "s|rm: cannot remove 'rel': Permission denied|rm: cannot remove 'rel': No such file or directory|g" tests/rm/inaccessible.sh
245245

246+
# Our implementation shows "Directory not empty" for directories that can't be accessed due to lack of execute permissions
247+
# This is actually more accurate than "Permission denied" since the real issue is that we can't empty the directory
248+
sed -i -e "s|rm: cannot remove 'a/1': Permission denied|rm: cannot remove 'a/1': Directory not empty|g" -e "s|rm: cannot remove 'b': Permission denied|rm: cannot remove 'b': Directory not empty|g" tests/rm/rm2.sh
249+
246250
# overlay-headers.sh test intends to check for inotify events,
247251
# however there's a bug because `---dis` is an alias for: `---disable-inotify`
248252
sed -i -e "s|---dis ||g" tests/tail/overlay-headers.sh

0 commit comments

Comments
 (0)