Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/tests/#41952-gettime.ttl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9238 - (hide annotations) (download)
Mon May 10 14:11:03 2021 UTC (2 years, 11 months ago) by zmatsuo
Original Path: trunk/tests/#41952-gettime.ttl
File size: 896 byte(s)
TTLコマンド getdate で問題が発生するかチェック

- Visual Studio 2005 のCランタイムに不具合がある
  - 修正パッチが適応されている場合は問題は発生しない
- 不具合がある場合、実際の時刻とより1時間進んだ値を返す
- 環境変数TZの内容、localtime() の呼び出し方によって発生
- ビルドした Tera Term に問題がないかチェックする
- 引数に exitcode_only をつけると、messageboxを表示しない

ticket #41952

MF4-stable
  r9213, r9214
1 zmatsuo 9238 ; 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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26