summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2008-06-17 02:16:06 (GMT)
committerKevin B Kenny <kennykb@acm.org>2008-06-17 02:16:06 (GMT)
commit81826540aab2845b6b171f38dd9051e923e6031b (patch)
treeef258c0fb1e1a85526a0e6ed5936cc7b4084de06 /tests/clock.test
parentec43fe476600ee215c4012baea54bdb62f394cd2 (diff)
downloadtcl-81826540aab2845b6b171f38dd9051e923e6031b.zip
tcl-81826540aab2845b6b171f38dd9051e923e6031b.tar.gz
tcl-81826540aab2845b6b171f38dd9051e923e6031b.tar.bz2
2006-06-17 Kevin Kenny <kennykb@acm.org>
* generic/tclClock.c (ConvertLocalToUTC): * tests/clock.test (clock-63.1): Fixed a bug where the internal ConvertLocalToUTC command segfaulted if passed a dictionary without the 'localSeconds' key. To the best of my knowledge, the bug was not observable in the [clock] command itself.
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 15e71eb..3d0f62d 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: clock.test,v 1.84 2008/04/14 18:01:01 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.85 2008/06/17 02:16:07 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -36636,6 +36636,14 @@ test clock-62.1 {Bug 1902423} {*}{
-result ok
}
+test clock-63.1 {Incorrect use of internal ConvertLocalToUTC command} {*}{
+ -body {
+ ::tcl::clock::ConvertLocalToUTC {immaterial stuff} {} 12345
+ }
+ -returnCodes error
+ -result {key "localseconds" not found in dictionary}
+}
+
# cleanup
namespace delete ::testClock