summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-08-12 23:55:28 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-08-12 23:55:28 (GMT)
commit7280fa4dc46b70421656b113813334d972e01a16 (patch)
treebdfab0ac281a64d91630de66c881967982d44143 /tests
parentfd92e0a3792e30101410a91d8410e0e695bdc4e1 (diff)
downloadtcl-7280fa4dc46b70421656b113813334d972e01a16.zip
tcl-7280fa4dc46b70421656b113813334d972e01a16.tar.gz
tcl-7280fa4dc46b70421656b113813334d972e01a16.tar.bz2
bug 1257830
Diffstat (limited to 'tests')
-rw-r--r--tests/clock.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test
index b8c864d..3ad928e 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.56 2005/07/15 22:32:24 kennykb Exp $
+# RCS: @(#) $Id: clock.test,v 1.57 2005/08/12 23:55:28 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -35465,6 +35465,19 @@ test clock-49.2 {regression test - missing time zone file (Bug 1237907)} \
} \
-result {<-0500>+05:00:00<-0400>+04:00:00,M4.1.0/02:00:00,M10.5.0/02:00:00 { 7:00:00 PM -0500} 1969}
+test clock-50.1 {format / scan -1 as a local time} {
+ if {[catch {
+ clock scan \
+ [clock format -1 -format %Y%m%d%H%M%S -timezone :localtime] \
+ -format %Y%m%d%H%M%S -timezone :localtime
+ } result]} {
+ if { [regexp "clock value too" $result] } {
+ set result -1
+ }
+ }
+ set result
+} -1
+
# cleanup
namespace delete ::testClock