Skip to content

Commit

Permalink
merge 8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sebres committed Oct 31, 2024
2 parents 104340e + 353df02 commit 6aab1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/clock.test
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,15 @@ test clock-1.4 "clock format - bad flag" {*}{
-result {1 {bad option "-oops": must be -format, -gmt, -locale, or -timezone} {CLOCK badOption -oops}}
}

test clock-1.5 "clock format - bad timezone" -body {
test clock-1.5 "clock format - bad timezone (not found)" -body {
clock format 0 -format "%s" -timezone :NOWHERE
} -returnCodes 1 -result {time zone ":NOWHERE" not found} -errorCode {CLOCK badTimeZone :NOWHERE}
foreach tz [list {*}{
../UNSAFEPATH/NOWHERE UNSAFEPATH/../GMT //UNSAFEPATH/NOWHERE
zipfs:/UNSAFEPATH/NOWHERE C:/UNSAFEPATH/NOWHERE
} [list $::tcl::clock::DataDir/GMT]
] {
test clock-1.5.1 "clock format - bad timezone" -body {
test clock-1.5.1 "clock format - bad timezone (not valid - unsafe path)" -body {
clock format 0 -format "%s" -timezone $tz
} -returnCodes 1 -result "time zone \":$tz\" not valid" -errorCode [list CLOCK badTimeZone :$tz]
}
Expand Down

0 comments on commit 6aab1a9

Please sign in to comment.