summaryrefslogtreecommitdiffstats
path: root/tests/gnu/ignore_readdir_race_rmdir.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gnu/ignore_readdir_race_rmdir.sh')
-rw-r--r--tests/gnu/ignore_readdir_race_rmdir.sh5
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 {} \;