Browse Subversion Repository
Contents of /branches/ttcomtester/tests/#41952-gettime.ttl
Parent Directory
| Revision Log
Revision 10521 -
( show annotations)
( download)
Fri Jan 20 16:03:38 2023 UTC
(14 months, 3 weeks ago)
by zmatsuo
File size: 896 byte(s)
add communication test tool
| 1 |
; gettimeの不具合を検出する |
| 2 |
; |
| 3 |
; - Visual Studio 2005 のCランタイムに不具合がある |
| 4 |
; - 修正パッチが適応されている場合は問題は発生しない |
| 5 |
; - 不具合がある場合、実際の時刻とより1時間進んだ値を返す |
| 6 |
; - 環境変数 TZの内容、localtime() の呼び出し方によって発生 |
| 7 |
; - ビルドした Tera Term に問題がないかチェックする |
| 8 |
; |
| 9 |
; ticket #41952 |
| 10 |
; https://ja.osdn.net/projects/ttssh2/ticket/41952 |
| 11 |
|
| 12 |
exitcode_only = 0 |
| 13 |
if paramcnt == 2 then |
| 14 |
strcompare params[2] "exitcode_only" |
| 15 |
if result == 0 then |
| 16 |
exitcode_only = 1 |
| 17 |
endif |
| 18 |
endif |
| 19 |
|
| 20 |
tz2="UTC" |
| 21 |
gettime tm2 "%Y/%m/%d %H:%M:%S" tz2 |
| 22 |
|
| 23 |
gettime tm1 "%Y/%m/%d %H:%M:%S" |
| 24 |
|
| 25 |
tz3="GMT" |
| 26 |
gettime tm3 "%Y/%m/%d %H:%M:%S" tz3 |
| 27 |
|
| 28 |
strcompare tm2 tm3 |
| 29 |
if result <> 0 then |
| 30 |
setexitcode 0; |
| 31 |
msg = "getdate has problem!" |
| 32 |
else |
| 33 |
setexitcode 1; |
| 34 |
msg = "no problem" |
| 35 |
endif |
| 36 |
if exitcode_only == 0 then |
| 37 |
messagebox msg "tera term" |
| 38 |
endif |
|