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  
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to