summaryrefslogtreecommitdiffstats
path: root/tests/gnu/ignore_readdir_race_notdir.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gnu/ignore_readdir_race_notdir.sh')
-rw-r--r--tests/gnu/ignore_readdir_race_notdir.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/gnu/ignore_readdir_race_notdir.sh b/tests/gnu/ignore_readdir_race_notdir.sh
new file mode 100644
index 0000000..0c3ff5d
--- /dev/null
+++ b/tests/gnu/ignore_readdir_race_notdir.sh
@@ -0,0 +1,5 @@
+# Check -ignore_readdir_race handling when a directory is replaced with a file
+rm -rf scratch/*
+touchp scratch/foo/bar
+
+invoke_bfs scratch -mindepth 1 -ignore_readdir_race -execdir rm -r {} \; -execdir $TOUCH {} \;