diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-12-17 13:16:22 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-12-17 13:16:22 -0500 |
commit | 35d301262b69c895e749c21a80f2324c03c453a3 (patch) | |
tree | 5ef11503bad390986c37cbe5acf8261d502bc67a /tests/gnu/ignore_readdir_race_rmdir.sh | |
parent | a8295acf6e16b0bee3d05985d10ca064730fb803 (diff) | |
download | bfs-35d301262b69c895e749c21a80f2324c03c453a3.tar.xz |
tests/gnu: Add an -ignore_readdir_race test for removed directories
Link: https://savannah.gnu.org/bugs/index.php?45930
Diffstat (limited to 'tests/gnu/ignore_readdir_race_rmdir.sh')
-rw-r--r-- | tests/gnu/ignore_readdir_race_rmdir.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gnu/ignore_readdir_race_rmdir.sh b/tests/gnu/ignore_readdir_race_rmdir.sh new file mode 100644 index 0000000..87f36a9 --- /dev/null +++ b/tests/gnu/ignore_readdir_race_rmdir.sh @@ -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 {} \; |