From 074c17c4df4dd403f811b4393ed24898406ca57e Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 20 Nov 2006 22:40:37 +0000 Subject: [PATCH] Added test case for Savannah bug #17822 --- find/testsuite/find.gnu/sv-bug-17782.exp | 18 ++++++++++++++++++ find/testsuite/find.gnu/sv-bug-17782.xo | 1 + 2 files changed, 19 insertions(+) create mode 100644 find/testsuite/find.gnu/sv-bug-17782.exp create mode 100644 find/testsuite/find.gnu/sv-bug-17782.xo diff --git a/find/testsuite/find.gnu/sv-bug-17782.exp b/find/testsuite/find.gnu/sv-bug-17782.exp new file mode 100644 index 0000000..cdd80e6 --- /dev/null +++ b/find/testsuite/find.gnu/sv-bug-17782.exp @@ -0,0 +1,18 @@ +# Savannah bug #17782. +# While -execdir echo blah {} works, -execdir echo "blah {}" doesn't. +# The bug is that the ./ prefix is prepended to the argument containing the +# braces, not to the expansion of the braces, so you get output like +# ./blah foo +# instead of +# blah ./foo +# +if { [ dot_is_on_path ] } { + warning { Cannot perform test as your $PATH environment variable includes a reference to the current directory } + untested { skipping this test because your $PATH variable is wrongly set } +} else { + exec rm -rf tmp + exec mkdir tmp + exec touch tmp/foo + find_start p { tmp -name foo -execdir echo "saw {}" \; } + exec rm -rf tmp +} diff --git a/find/testsuite/find.gnu/sv-bug-17782.xo b/find/testsuite/find.gnu/sv-bug-17782.xo new file mode 100644 index 0000000..2bde550 --- /dev/null +++ b/find/testsuite/find.gnu/sv-bug-17782.xo @@ -0,0 +1 @@ +saw ./foo \ No newline at end of file -- 2.11.4.GIT