From 99a362d04b507c7c0436c06f087f3d0d3abdc665 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 28 Mar 2024 10:16:03 -0400 Subject: tests/common: Add a -delete error handling test --- tests/common/delete_error.out | 8 ++++++++ tests/common/delete_error.sh | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/common/delete_error.out create mode 100644 tests/common/delete_error.sh diff --git a/tests/common/delete_error.out b/tests/common/delete_error.out new file mode 100644 index 0000000..b6b6505 --- /dev/null +++ b/tests/common/delete_error.out @@ -0,0 +1,8 @@ +. +. +./baz +./baz +./baz/qux +./baz/qux +./foo +./foo/bar diff --git a/tests/common/delete_error.sh b/tests/common/delete_error.sh new file mode 100644 index 0000000..e6327f3 --- /dev/null +++ b/tests/common/delete_error.sh @@ -0,0 +1,9 @@ +cd "$TEST" + +"$XTOUCH" -p foo/bar baz/qux +chmod -w foo +defer chmod +w foo + +! invoke_bfs . -print -delete -print >"$OUT" || fail +sort_output +diff_output -- cgit v1.2.3