axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r1125250 - in /axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp: CommonClientTestCode.hpp InteropTestRound1Client.cpp
Date Fri, 20 May 2011 06:13:13 GMT
Author: nadiramra
Date: Fri May 20 06:13:12 2011
New Revision: 1125250

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

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

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=1125250&r1=1125249&r2=1125250&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 Fri
May 20 06:13:12 2011
@@ -291,5 +291,26 @@ struct tm * adjustTimeStruct(struct tm *
     return t;
 }
 
+struct tm * adjustTimeStruct2(struct tm *t)
+{
+    time_t timeInSecs;
+    struct tm *temp;
+
+    dumpTimeStruct(t, "before\n");
+
+    if (isDSTInEffect())
+        t->tm_isdst = 1;
+
+    timeInSecs= mktime (t);
+
+    temp = localtime(&timeInSecs);
+
+    *t = *temp;
+
+    dumpTimeStruct(t, "after\n");
+
+    return t;
+}
+
 
 #endif

Modified: axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp?rev=1125250&r1=1125249&r2=1125250&view=diff
==============================================================================
--- axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp (original)
+++ axis/axis1/c/trunk/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp Fri
May 20 06:13:12 2011
@@ -334,7 +334,7 @@ int main( int argc, char * argv[])
 
                         xsd__dateTime   ed_temp = ws.echoDate( time);
                         
-                        adjustTimeStruct(&ed_temp);
+                        adjustTimeStruct2(&ed_temp);
 
                         if( memcmp(&time, &ed_temp, sizeof(struct tm)) == 0)
                         {



Mime
View raw message