[fdo-commits] r2615 - trunk/Providers/GDAL/Src/UnitTest

svn_fdo at osgeo.org svn_fdo at osgeo.org
Thu Mar 1 01:18:45 EST 2007


Author: warmerdam
Date: 2007-03-01 01:18:45 -0500 (Thu, 01 Mar 2007)
New Revision: 2615

Modified:
   trunk/Providers/GDAL/Src/UnitTest/UnitTest.h
Log:
Improve exception reporting.


Modified: trunk/Providers/GDAL/Src/UnitTest/UnitTest.h
===================================================================
--- trunk/Providers/GDAL/Src/UnitTest/UnitTest.h	2007-02-27 21:40:56 UTC (rev 2614)
+++ trunk/Providers/GDAL/Src/UnitTest/UnitTest.h	2007-03-01 06:18:45 UTC (rev 2615)
@@ -51,9 +51,11 @@
         }\
         catch (FdoException* exception)\
         {\
+            char szError[5000]; \
+            sprintf( szError, "Unhandled FdoException in " #testMethod ":\n  %ls\n", exception->GetExceptionMessage() ); \
             PrintException(exception);\
             exception->Release();\
-            CPPUNIT_ASSERT_MESSAGE("Unhandled FdoException in " #testMethod, false);\
+            CPPUNIT_ASSERT_MESSAGE(szError, false);\
         }\
     }\
 



More information about the fdo-commits mailing list