summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-11-01 16:41:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-11-01 16:41:20 (GMT)
commit1b435abc4154bcc21eab372039b43f00d9216aff (patch)
tree34dbac2629e54790b9483126cf543a28720621af /tests
parent3d477f55379e35185630a523266f4bbe2fd816cc (diff)
downloadtcl-1b435abc4154bcc21eab372039b43f00d9216aff.zip
tcl-1b435abc4154bcc21eab372039b43f00d9216aff.tar.gz
tcl-1b435abc4154bcc21eab372039b43f00d9216aff.tar.bz2
* tests/unixNotfy.test (1.1,2): Update error message whitespace to
match changes in code. * tests/expr-old.test (expr-32.52): Use int(.) to restrict result of left shift to the C long range.
Diffstat (limited to 'tests')
-rw-r--r--tests/expr-old.test4
-rw-r--r--tests/unixNotfy.test6
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/expr-old.test b/tests/expr-old.test
index 86c7e5a..971ea05 100644
--- a/tests/expr-old.test
+++ b/tests/expr-old.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: expr-old.test,v 1.29 2005/10/21 20:44:17 dgp Exp $
+# RCS: @(#) $Id: expr-old.test,v 1.30 2005/11/01 16:41:20 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -875,7 +875,7 @@ test expr-old-32.51 {math functions in expressions} knownBug {
list [catch {expr {srand([lindex "6ty" 0])}} msg] $msg
} {1 {argument to math function didn't have numeric value}}
test expr-old-32.52 {math functions in expressions} {
- expr {srand(1<<37) < 1}
+ expr {srand(int(1<<37)) < 1}
} {1}
test expr-old-32.53 {math functions in expressions} {
expr {srand((1<<31) - 1) > 0}
diff --git a/tests/unixNotfy.test b/tests/unixNotfy.test
index 42090d9..24717ee 100644
--- a/tests/unixNotfy.test
+++ b/tests/unixNotfy.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: unixNotfy.test,v 1.18 2005/05/14 20:46:46 das Exp $
+# RCS: @(#) $Id: unixNotfy.test,v 1.19 2005/11/01 16:41:20 dgp Exp $
# The tests should not be run if you have a notifier which is unable to
# detect infinite vwaits, as the tests below will hang. The presence of
@@ -40,7 +40,7 @@ test unixNotfy-1.1 {Tcl_DeleteFileHandler} -constraints {noTk unix unthreaded} -
vwait x
close $f
list [catch {vwait x} msg] $msg
-} -result {1 {can't wait for variable "x": would wait forever}} -cleanup {
+} -result {1 {can't wait for variable "x": would wait forever}} -cleanup {
catch { close $f }
catch { removeFile foo }
}
@@ -55,7 +55,7 @@ test unixNotfy-1.2 {Tcl_DeleteFileHandler} -constraints {noTk unix unthreaded} -
vwait y
close $f2
list [catch {vwait x} msg] $msg
-} -result {1 {can't wait for variable "x": would wait forever}} -cleanup {
+} -result {1 {can't wait for variable "x": would wait forever}} -cleanup {
catch { close $f1 }
catch { close $f2 }
catch { removeFile foo }