Skip to content

Commit

Permalink
tests/gnu: Add an -ignore_readdir_race test for removed directories
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Dec 17, 2024
1 parent a8295ac commit 35d3012
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/gnu/ignore_readdir_race_rmdir.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./bar
./foo
5 changes: 5 additions & 0 deletions tests/gnu/ignore_readdir_race_rmdir.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd "$TEST"
"$XTOUCH" -p foo/ bar/

# Check that -ignore_readdir_race suppresses errors from opendir()
bfs_diff . -ignore_readdir_race -mindepth 1 -print -name foo -exec rmdir {} \;

0 comments on commit 35d3012

Please sign in to comment.