summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-10-25 16:11:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-10-25 16:11:04 (GMT)
commit21bcaa16ff89eab9ccace22a22fe35b95c13c0cd (patch)
tree45ceb4f9c64e1d4b34d76257ecbfd5dd259626e5
parentf524242bf5ebdbcbf78d2625a54571c2d6d1830c (diff)
downloadtcl-21bcaa16ff89eab9ccace22a22fe35b95c13c0cd.zip
tcl-21bcaa16ff89eab9ccace22a22fe35b95c13c0cd.tar.gz
tcl-21bcaa16ff89eab9ccace22a22fe35b95c13c0cd.tar.bz2
Fixed tesst selection to choose the right behaviour (use 64-bit code if we
can support 64-bit operation.)
-rw-r--r--tests/get.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/get.test b/tests/get.test
index e76e870..1be3b44 100644
--- a/tests/get.test
+++ b/tests/get.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: get.test,v 1.5.16.1 2001/10/09 15:29:27 dkf Exp $
+# RCS: @(#) $Id: get.test,v 1.5.16.2 2001/10/25 16:11:04 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -45,7 +45,7 @@ test get-1.6 {Tcl_GetInt procedure} {
# The following tests are non-portable because they depend on
# word size.
-if {int(0x80000000) > int(0)} {
+if {wide(0x80000000) > wide(0)} {
test get-1.7 {Tcl_GetInt procedure} {
set x 44
list [catch {incr x 18446744073709551616} msg] $msg $errorCode
@@ -63,19 +63,19 @@ if {int(0x80000000) > int(0)} {
list [catch {incr x -18446744073709551614} msg] $msg
} {0 2}
} else {
- test get-1.7 {Tcl_GetInt procedure} {
+ test get-1.11 {Tcl_GetInt procedure} {
set x 44
list [catch {incr x 4294967296} msg] $msg $errorCode
} {1 {integer value too large to represent} {ARITH IOVERFLOW {integer value too large to represent}}}
- test get-1.8 {Tcl_GetInt procedure} {
+ test get-1.12 {Tcl_GetInt procedure} {
set x 0
list [catch {incr x 4294967294} msg] $msg
} {0 -2}
- test get-1.9 {Tcl_GetInt procedure} {
+ test get-1.13 {Tcl_GetInt procedure} {
set x 0
list [catch {incr x +4294967294} msg] $msg
} {0 -2}
- test get-1.10 {Tcl_GetInt procedure} {
+ test get-1.14 {Tcl_GetInt procedure} {
set x 0
list [catch {incr x -4294967294} msg] $msg
} {0 2}