axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r1126292 - in /axis/axis1/c/trunk/tests/auto_build/testcases/client: c/CommonClientTestCode.h cpp/CommonClientTestCode.hpp
Date Mon, 23 May 2011 02:04:14 GMT
Author: nadiramra
Date: Mon May 23 02:04:14 2011
New Revision: 1126292

URL: http://svn.apache.org/viewvc?rev=1126292&view=rev
Log:
Minor - Test cases should take into account daylight saving time

Modified:
    axis/axis1/c/trunk/tests/auto_build/testcases/client/c/CommonClientTestCode.h
    axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/CommonClientTestCode.hpp

Modified: axis/axis1/c/trunk/tests/auto_build/testcases/client/c/CommonClientTestCode.h
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/tests/auto_build/testcases/client/c/CommonClientTestCode.h?rev=1126292&r1=1126291&r2=1126292&view=diff
==============================================================================
--- axis/axis1/c/trunk/tests/auto_build/testcases/client/c/CommonClientTestCode.h (original)
+++ axis/axis1/c/trunk/tests/auto_build/testcases/client/c/CommonClientTestCode.h Mon May
23 02:04:14 2011
@@ -177,6 +177,14 @@ C_BOOL isDSTInEffect()
     (void)time(&currentTime);
     ts = localtime(&currentTime);
 
+    if (ts->tm_isdst < 0)
+    {
+        char *dstEnvVar = getenv("AXISTEST_DST");
+        if (dstEnvVar && strcmp(dstEnvVar, "1") == 0)
+            ts->tm_isdst = 1;
+    }
+
+
     if (ts->tm_isdst > 0)
         return C_TRUE;
 

Modified: axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/CommonClientTestCode.hpp
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/CommonClientTestCode.hpp?rev=1126292&r1=1126291&r2=1126292&view=diff
==============================================================================
--- axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/CommonClientTestCode.hpp (original)
+++ axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/CommonClientTestCode.hpp Mon
May 23 02:04:14 2011
@@ -264,6 +264,13 @@ bool isDSTInEffect()
     (void)time(&currentTime);
     ts = localtime(&currentTime);
 
+    if (ts->tm_isdst < 0)
+    {
+        char *dstEnvVar = getenv("AXISTEST_DST");
+        if (dstEnvVar && strcmp(dstEnvVar, "1") == 0)
+            ts->tm_isdst = 1;
+    }
+
     if (ts->tm_isdst > 0)
         return true;
 



Mime
View raw message