diff options
author | Ron Yorston <rmy@pobox.com> | 2021-06-28 07:46:32 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-06-28 07:46:32 +0100 |
commit | e1ad66c0b8fd58a7158d40771175a7dab224202d (patch) | |
tree | 959d687eee9637151ad5798322586174de331141 /testsuite | |
parent | 0fdf99bee07b6c38795eb5415b5e337ab82cfba8 (diff) | |
parent | 5dbbd0a6f52befe6bc57baf97d39168e595197f1 (diff) | |
download | busybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.tar.gz busybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.tar.bz2 busybox-w32-e1ad66c0b8fd58a7158d40771175a7dab224202d.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/mv/mv-files-to-dir-2 | 16 | ||||
-rwxr-xr-x | testsuite/unlzma.tests | 17 | ||||
-rw-r--r-- | testsuite/unlzma_issue_3.lzma | bin | 0 -> 27 bytes |
3 files changed, 29 insertions, 4 deletions
diff --git a/testsuite/mv/mv-files-to-dir-2 b/testsuite/mv/mv-files-to-dir-2 new file mode 100644 index 000000000..e189ebb6f --- /dev/null +++ b/testsuite/mv/mv-files-to-dir-2 | |||
@@ -0,0 +1,16 @@ | |||
1 | echo file number one > file1 | ||
2 | echo file number two > file2 | ||
3 | ln -s file2 link1 | ||
4 | mkdir dir1 | ||
5 | TZ=UTC0 touch -d '2000-01-30 05:24:08' dir1/file3 | ||
6 | mkdir there | ||
7 | busybox mv -t there file1 file2 link1 dir1 | ||
8 | test -f there/file1 | ||
9 | test -f there/file2 | ||
10 | test -f there/dir1/file3 | ||
11 | test -L there/link1 | ||
12 | test xfile2 = x`readlink there/link1` | ||
13 | test ! -e file1 | ||
14 | test ! -e file2 | ||
15 | test ! -e link1 | ||
16 | test ! -e dir1/file3 | ||
diff --git a/testsuite/unlzma.tests b/testsuite/unlzma.tests index 0e98afe09..fcc6e9441 100755 --- a/testsuite/unlzma.tests +++ b/testsuite/unlzma.tests | |||
@@ -8,14 +8,23 @@ | |||
8 | 8 | ||
9 | # Damaged encrypted streams | 9 | # Damaged encrypted streams |
10 | testing "unlzma (bad archive 1)" \ | 10 | testing "unlzma (bad archive 1)" \ |
11 | "unlzma <unlzma_issue_1.lzma >/dev/null; echo \$?" \ | 11 | "unlzma <unlzma_issue_1.lzma 2>&1 >/dev/null; echo \$?" \ |
12 | "1 | 12 | "unlzma: corrupted data |
13 | 1 | ||
13 | " "" "" | 14 | " "" "" |
14 | 15 | ||
15 | # Damaged encrypted streams | 16 | # Damaged encrypted streams |
16 | testing "unlzma (bad archive 2)" \ | 17 | testing "unlzma (bad archive 2)" \ |
17 | "unlzma <unlzma_issue_2.lzma >/dev/null; echo \$?" \ | 18 | "unlzma <unlzma_issue_2.lzma 2>&1 >/dev/null; echo \$?" \ |
18 | "1 | 19 | "unlzma: corrupted data |
20 | 1 | ||
21 | " "" "" | ||
22 | |||
23 | # Damaged encrypted streams | ||
24 | testing "unlzma (bad archive 3)" \ | ||
25 | "unlzma <unlzma_issue_3.lzma 2>&1 >/dev/null; echo \$?" \ | ||
26 | "unlzma: corrupted data | ||
27 | 1 | ||
19 | " "" "" | 28 | " "" "" |
20 | 29 | ||
21 | exit $FAILCOUNT | 30 | exit $FAILCOUNT |
diff --git a/testsuite/unlzma_issue_3.lzma b/testsuite/unlzma_issue_3.lzma new file mode 100644 index 000000000..cc60f29e4 --- /dev/null +++ b/testsuite/unlzma_issue_3.lzma | |||
Binary files differ | |||