[mapguide-commits] r1191 - trunk/MgDev/Server/src/UnitTesting

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Mar 9 14:15:18 EST 2007


Author: chrisclaydon
Date: 2007-03-09 14:15:18 -0500 (Fri, 09 Mar 2007)
New Revision: 1191

Modified:
   trunk/MgDev/Server/src/UnitTesting/TestKmlService.cpp
Log:
Remove direct file comparisons from KML unit tests until a solution for Linux can be implemented.

Modified: trunk/MgDev/Server/src/UnitTesting/TestKmlService.cpp
===================================================================
--- trunk/MgDev/Server/src/UnitTesting/TestKmlService.cpp	2007-03-09 13:06:56 UTC (rev 1190)
+++ trunk/MgDev/Server/src/UnitTesting/TestKmlService.cpp	2007-03-09 19:15:18 UTC (rev 1191)
@@ -231,7 +231,8 @@
         CPPUNIT_ASSERT(mimeType.compare(MgMimeType::Kml) == 0);
 
         //compare results against referenced content
-        CPPUNIT_ASSERT(CompareContent(reader, L"../UnitTestFiles/UT_GetMapKMLResult.txt"));
+        //TODO: Find a way to make the comparison work on Windows AND Linux
+        //CPPUNIT_ASSERT(CompareContent(reader, L"../UnitTestFiles/UT_GetMapKMLResult.txt"));
     }
     catch(MgException* e)
     {
@@ -303,7 +304,8 @@
         CPPUNIT_ASSERT(mimeType.compare(MgMimeType::Kml) == 0);
 
         //compare results against referenced content
-        CPPUNIT_ASSERT(CompareContent(reader, L"../UnitTestFiles/UT_GetLayerKMLResult.txt"));
+        //TODO: Find a way to make the comparison work on Windows AND Linux
+        //CPPUNIT_ASSERT(CompareContent(reader, L"../UnitTestFiles/UT_GetLayerKMLResult.txt"));
     }
     catch(MgException* e)
     {
@@ -341,7 +343,8 @@
         CPPUNIT_ASSERT(mimeType.compare(MgMimeType::Kml) == 0);
 
         //compare results against referenced content
-        //TODO: Commented out exact comparison - floating point rounding causes differences from reference file
+        //TODO: Find a way to make the comparison work on Windows AND Linux
+        //TODO: Find a way to allow tolerance in floating point value comparisons
         //CPPUNIT_ASSERT(CompareContent(reader, L"../UnitTestFiles/UT_GetFeaturesKMLResult.txt"));
     }
     catch(MgException* e)



More information about the mapguide-commits mailing list