Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/4-stable/tests/#41952-gettime.ttl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9220 - (show annotations) (download)
Mon Apr 26 15:36:59 2021 UTC (2 years, 11 months ago) by zmatsuo
File size: 1050 byte(s)
不具合が解消するパッチの説明を追記
1 ; gettimeの不具合を検出する
2 ;
3 ; - Visual Studio 2005 のCランタイムに不具合がある
4 ; - 修正パッチが適応されている場合は問題は発生しない
5 ; - 次のパッチを適応することで不具合が解消されるのを確認した
6 ; - Visual Studio 2005 Service Pack 1 (VS80sp1-KB926602-X86-JPN.exe)
7 ; - 不具合がある場合、実際の時刻とより1時間進んだ値を返す
8 ; - 環境変数 TZの内容、localtime() の呼び出し方によって発生
9 ; - このマクロは gettime の動作に問題がないかをチェックためのもの
10 ;
11 ; ticket #41952
12 ; https://ja.osdn.net/projects/ttssh2/ticket/41952
13
14 exitcode_only = 0
15 if paramcnt == 2 then
16 strcompare params[2] "exitcode_only"
17 if result == 0 then
18 exitcode_only = 1
19 endif
20 endif
21
22 tz2="UTC"
23 gettime tm2 "%Y/%m/%d %H:%M:%S" tz2
24
25 gettime tm1 "%Y/%m/%d %H:%M:%S"
26
27 tz3="GMT"
28 gettime tm3 "%Y/%m/%d %H:%M:%S" tz3
29
30 strcompare tm2 tm3
31 if result <> 0 then
32 setexitcode 0;
33 msg = "getdate has problem!"
34 else
35 setexitcode 1;
36 msg = "no problem"
37 endif
38 if exitcode_only == 0 then
39 messagebox msg "tera term"
40 endif

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