[fdo-commits] r2616 - trunk/Providers/GDAL/Src/UnitTest
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Thu Mar 1 01:19:39 EST 2007
Author: warmerdam
Date: 2007-03-01 01:19:39 -0500 (Thu, 01 Mar 2007)
New Revision: 2616
Modified:
trunk/Providers/GDAL/Src/UnitTest/UnitTest.cpp
Log:
improve error reporting in PrintException : wprintf doesnt seem to work
Modified: trunk/Providers/GDAL/Src/UnitTest/UnitTest.cpp
===================================================================
--- trunk/Providers/GDAL/Src/UnitTest/UnitTest.cpp 2007-03-01 06:18:45 UTC (rev 2615)
+++ trunk/Providers/GDAL/Src/UnitTest/UnitTest.cpp 2007-03-01 06:19:39 UTC (rev 2616)
@@ -48,6 +48,7 @@
// The following macros are used as switches to determine
// which Test Cases will be excuted.
+#ifndef notdef
#define TEST_NO_CONFIG
#define TEST_EXAMPLE1
#define TEST_OVERRIDES_SERIALIZE
@@ -61,8 +62,9 @@
#define TEST_AAIGrid
#define TEST_PNG
#define TEST_JPG
+#endif
+#define TEST_SPATIAL_CONTEXT
-//#define TEST_SPATIAL_CONTEXT
//#define TEST_ECW
//#define TEST_JP2
//#define TEST_MRSID
@@ -185,9 +187,10 @@
void prependTabs(FdoInt32 tabLevel)
{
for (FdoInt32 i = 0; i < tabLevel; i++)
- wprintf(L" ");
+ fprintf( stderr, " ");
}
+
void PrintException(FdoException* exception)
{
FdoException* currentException = exception;
@@ -195,7 +198,8 @@
while (currentException != NULL)
{
prependTabs(tabLevel++);
- wprintf(L"%s\n", currentException->GetExceptionMessage());
+ fprintf( stderr, "%ls\n",
+ currentException->GetExceptionMessage());
if (currentException != exception)
currentException->Release();
currentException = currentException->GetCause();
More information about the fdo-commits
mailing list