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