From 35d301262b69c895e749c21a80f2324c03c453a3 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 17 Dec 2024 13:16:22 -0500 Subject: tests/gnu: Add an -ignore_readdir_race test for removed directories Link: https://savannah.gnu.org/bugs/index.php?45930 --- tests/gnu/ignore_readdir_race_rmdir.out | 2 ++ tests/gnu/ignore_readdir_race_rmdir.sh | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 tests/gnu/ignore_readdir_race_rmdir.out create mode 100644 tests/gnu/ignore_readdir_race_rmdir.sh diff --git a/tests/gnu/ignore_readdir_race_rmdir.out b/tests/gnu/ignore_readdir_race_rmdir.out new file mode 100644 index 0000000..ede8749 --- /dev/null +++ b/tests/gnu/ignore_readdir_race_rmdir.out @@ -0,0 +1,2 @@ +./bar +./foo 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 {} \; -- cgit v1.2.3