summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordas <das@noemail.net>2008-12-21 21:17:18 (GMT)
committerdas <das@noemail.net>2008-12-21 21:17:18 (GMT)
commitfe111fb520145f61458fd46fbf90295a3587b9f0 (patch)
tree4273f12361c8755073e3f5d8c5e86bd7337ed068 /tests
parent9d421ed9c84c45920fd20fb79cdc3fa27d279fbc (diff)
downloadtcl-fe111fb520145f61458fd46fbf90295a3587b9f0.zip
tcl-fe111fb520145f61458fd46fbf90295a3587b9f0.tar.gz
tcl-fe111fb520145f61458fd46fbf90295a3587b9f0.tar.bz2
fix 64bit test failures
FossilOrigin-Name: 437f8a7cb654d2166cc17f7063eba6a97e3d6769
Diffstat (limited to 'tests')
-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