summaryrefslogtreecommitdiffstats
path: root/tests/zlib.test
diff options
context:
space:
mode:
authordas <das>2008-12-21 21:17:19 (GMT)
committerdas <das>2008-12-21 21:17:19 (GMT)
commit2619aae3151b27dc369e63d986791f48d17ba71b (patch)
tree4273f12361c8755073e3f5d8c5e86bd7337ed068 /tests/zlib.test
parenta87ad4cfe4291918feedc62384ec3cdb18381f1b (diff)
downloadtcl-2619aae3151b27dc369e63d986791f48d17ba71b.zip
tcl-2619aae3151b27dc369e63d986791f48d17ba71b.tar.gz
tcl-2619aae3151b27dc369e63d986791f48d17ba71b.tar.bz2
fix 64bit test failures
Diffstat (limited to 'tests/zlib.test')
-rw-r--r--tests/zlib.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/zlib.test b/tests/zlib.test
index 380edaf..dd0b1dc 100644
--- a/tests/zlib.test
+++ b/tests/zlib.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: zlib.test,v 1.5 2008/12/18 10:37:43 dkf Exp $
+# RCS: @(#) $Id: zlib.test,v 1.6 2008/12/21 21:17:19 das Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -44,20 +44,20 @@ test zlib-4.2 {zlib gzip/gunzip} zlib {
} {abcdefabcdefabcdefabcdefabcdef gorp 30}
test zlib-5.1 {zlib adler32} zlib {
- format %x [zlib adler32 abcdeabcdeabcdeabcdeabcdeabcde]
+ format %x [expr {[zlib adler32 abcdeabcdeabcdeabcdeabcdeabcde] & 0xffffffff}]
} b3b50b9b
test zlib-5.2 {zlib adler32} zlib {
- format %x [zlib adler32 abcdeabcdeabcdeabcdeabcdeabcde 42]
+ format %x [expr {[zlib adler32 abcdeabcdeabcdeabcdeabcdeabcde 42] & 0xffffffff}]
} b8830bc4
test zlib-5.3 {zlib adler32} -constraints zlib -returnCodes error -body {
zlib adler32 abcdeabcdeabcdeabcdeabcdeabcde 42 x
} -result {wrong # args: should be "zlib adler32 data ?startValue?"}
test zlib-6.1 {zlib crc32} zlib {
- format %x [zlib crc32 abcdeabcdeabcdeabcdeabcdeabcde]
+ format %x [expr {[zlib crc32 abcdeabcdeabcdeabcdeabcdeabcde] & 0xffffffff}]
} 6f73e901
test zlib-6.2 {zlib crc32} zlib {
- format %x [zlib crc32 abcdeabcdeabcdeabcdeabcdeabcde 42]
+ format %x [expr {[zlib crc32 abcdeabcdeabcdeabcdeabcdeabcde 42] & 0xffffffff}]
} ce1c4914
test zlib-6.3 {zlib crc32} -constraints zlib -returnCodes error -body {
zlib crc32 abcdeabcdeabcdeabcdeabcdeabcde 42 x