[git commit] testsuite/tree.tests: fix false positive failure

Denys Vlasenko vda.linux at googlemail.com
Mon Jan 2 16:01:14 UTC 2023


commit: https://git.busybox.net/busybox/commit/?id=dc068abad597cb8ccd08da84180d0bdba7b3af01
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/tree.tests | 38 ++++++++++++++++++++------------------
 1 file changed, 20 insertions(+), 18 deletions(-)

diff --git a/testsuite/tree.tests b/testsuite/tree.tests
index 4f4a9e30b..1fa66da80 100755
--- a/testsuite/tree.tests
+++ b/testsuite/tree.tests
@@ -18,6 +18,8 @@ tree.tempdir [error opening dir]\n\
 mkdir -p tree2.tempdir
 touch tree2.tempdir/testfile
 
+optional UNICODE_SUPPORT
+
 testing "tree single file" \
 	"cd tree2.tempdir && tree" \
 	"\
@@ -50,17 +52,17 @@ testing "tree nested directories and files" \
 .\n\
 ├── test1\n\
 ├── test2\n\
-│   ├── a\n\
-│   │   ├── testfile1\n\
-│   │   ├── testfile2\n\
-│   │   ├── testfile3\n\
-│   │   └── testfile4 -> ../b/testfile4\n\
-│   └── b\n\
-│       ├── test3 -> ../../test3\n\
-│       └── testfile4\n\
+│   ├── a\n\
+│   │   ├── testfile1\n\
+│   │   ├── testfile2\n\
+│   │   ├── testfile3\n\
+│   │   └── testfile4 -> ../b/testfile4\n\
+│   └── b\n\
+│       ├── test3 -> ../../test3\n\
+│       └── testfile4\n\
 └── test3\n\
     ├── c\n\
-    │   └── testfile5\n\
+    │   └── testfile5\n\
     └── d\n\
         └── testfile6\n\
 \n\
@@ -77,17 +79,17 @@ tree2.tempdir\n\
 tree3.tempdir\n\
 ├── test1\n\
 ├── test2\n\
-│   ├── a\n\
-│   │   ├── testfile1\n\
-│   │   ├── testfile2\n\
-│   │   ├── testfile3\n\
-│   │   └── testfile4 -> ../b/testfile4\n\
-│   └── b\n\
-│       ├── test3 -> ../../test3\n\
-│       └── testfile4\n\
+│   ├── a\n\
+│   │   ├── testfile1\n\
+│   │   ├── testfile2\n\
+│   │   ├── testfile3\n\
+│   │   └── testfile4 -> ../b/testfile4\n\
+│   └── b\n\
+│       ├── test3 -> ../../test3\n\
+│       └── testfile4\n\
 └── test3\n\
     ├── c\n\
-    │   └── testfile5\n\
+    │   └── testfile5\n\
     └── d\n\
         └── testfile6\n\
 \n\


More information about the busybox-cvs mailing list