summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-09-28 11:02:02 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-09-28 11:02:02 (GMT)
commit9375cacd65f812d604e0775d9891e69a2415ee1e (patch)
tree1c90d5ce229c3a3db618cbc491b2f112ea74b201 /tests
parent41883cbddfa57f2b27197042f807763f31b4ecd0 (diff)
downloadtcl-9375cacd65f812d604e0775d9891e69a2415ee1e.zip
tcl-9375cacd65f812d604e0775d9891e69a2415ee1e.tar.gz
tcl-9375cacd65f812d604e0775d9891e69a2415ee1e.tar.bz2
Start on password related zipfs bugs
Diffstat (limited to 'tests')
-rw-r--r--tests/zipfiles/README2
-rw-r--r--tests/zipfs.test6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/zipfiles/README b/tests/zipfiles/README
index 38ce998..a036635 100644
--- a/tests/zipfiles/README
+++ b/tests/zipfiles/README
@@ -1,7 +1,7 @@
The files in this directory are used for testing zipfs file systems.
They fall under the following licenses:
-test-overlay.zip, test-password.zip, test-zip-in-zip.zip - Tcl's license
+test-overlay.zip, test-password[2].zip, test-zip-in-zip.zip - Tcl's license
All other files - test files from libzip (https://libzip.org) and are covered by
the license in LICENSE-libzip. \ No newline at end of file
diff --git a/tests/zipfs.test b/tests/zipfs.test
index 705f26f..972790f 100644
--- a/tests/zipfs.test
+++ b/tests/zipfs.test
@@ -1219,13 +1219,13 @@ namespace eval test_ns_zipfs {
testConstraint bug-bbe7c6ff9e [expr {$::tcl_platform(os) ne "Darwin"}]
testpassword plain plain.txt password plaintext
testpassword plain-nopassword plain.txt "" plaintext
- testpassword plain-badpassword plain.txt xxx plaintext
+ testpassword plain-badpassword plain.txt badpassword plaintext
testpassword cipher cipher.bin password ciphertext -constraints bug-bbe7c6ff9e
testpassword cipher-nopassword cipher.bin {} "decryption failed - no password provided" -returnCodes error
- testpassword cipher-badpassword cipher.bin xxx "invalid CRC" -returnCodes error
+ testpassword cipher-badpassword cipher.bin badpassword "invalid password" -returnCodes error
testpassword cipher-deflate cipher-deflate.bin password [lseq 100] -constraints bug-bbe7c6ff9e
testpassword cipher-deflate-nopassword cipher-deflate.bin {} "decryption failed - no password provided" -returnCodes error
- testpassword cipher-deflate-badpassword cipher-deflate.bin xxx "decompression error" -returnCodes error
+ testpassword cipher-deflate-badpassword cipher-deflate.bin badpassword "invalid password" -returnCodes error
#
# CRC errors