From 1b435abc4154bcc21eab372039b43f00d9216aff Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 1 Nov 2005 16:41:20 +0000 Subject: * 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. --- ChangeLog | 6 ++++++ tests/expr-old.test | 4 ++-- tests/unixNotfy.test | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 542be58..2e4a2c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2005-11-01 Don Porter + * 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. + * expr.test (expr-46.13): Added test that illustrates shortcoming of Patch 1340260. 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 } -- cgit v0.12