[PATCH] testsuite: test for bug in diff with trailing / on dirs

Denys Vlasenko vda.linux at googlemail.com
Fri Jul 9 17:47:34 UTC 2010


On Friday 09 July 2010 09:23, Natanael Copa wrote:
> This testcase triggers bug in diff when a trailing / is used on dir.
> 
> Bug was reported as https://bugs.busybox.net/show_bug.cgi?id=2203
> ---
>  testsuite/diff.tests |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/testsuite/diff.tests b/testsuite/diff.tests
> index 06d5a4f..35737eb 100755
> --- a/testsuite/diff.tests
> +++ b/testsuite/diff.tests
> @@ -184,6 +184,17 @@ File diff1/test2 is not a regular file or directory and was skipped
>  	"" ""
>  SKIP=
>  
> +# test dir with trailing /
> +rm -rf diff1 diff2
> +mkdir diff1
> +touch diff1/test1
> +cp -r diff1 diff2
> +optional FEATURE_DIFF_DIR
> +testing "diff -r on dir with trailing /" \
> +	"diff -r diff1 diff2/"  \
> +	"" "" ""
> +SKIP=
> +
>  # clean up
>  rm -rf diff1 diff2

Oh... I wrote my own version before I saw your mail...
-- 
vda  


More information about the busybox mailing list