mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
- removed completed TODO items
- now catches expected exceptions for not finding map extents since there aren't going to be any in the test simulation git-svn-id: http://svn.osgeo.org/qgis/trunk@3197 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
7d8aedd8db
commit
3f519be7fc
@ -11,6 +11,7 @@ using namespace std;
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
#include <qgsproject.h>
|
||||
#include <qgsexception.h>
|
||||
|
||||
#include <qstring.h>
|
||||
|
||||
@ -21,9 +22,6 @@ using namespace std;
|
||||
|
||||
@todo XXX add tests for:
|
||||
|
||||
entryList()
|
||||
removeEntry()
|
||||
clearProperties()
|
||||
read()
|
||||
write()
|
||||
|
||||
@ -212,7 +210,18 @@ class ProjectTest : public CppUnit::TestFixture
|
||||
|
||||
QgsProject::instance()->clearProperties();
|
||||
|
||||
CPPUNIT_ASSERT( QgsProject::instance()->read() );
|
||||
try
|
||||
{
|
||||
CPPUNIT_ASSERT( QgsProject::instance()->read() );
|
||||
}
|
||||
catch( QgsException & e )
|
||||
{
|
||||
// since we're not running the full application, this exception is
|
||||
// expected, so we can safely ignore it
|
||||
|
||||
qDebug( "%s:%d caught expected exception %s", __FILE__, __LINE__, e.what() );
|
||||
|
||||
}
|
||||
|
||||
bool status;
|
||||
|
||||
|
@ -276,7 +276,7 @@ QGIS_FILES = qgisapp.o \
|
||||
QGIS_OBJS = $$join(QGIS_FILES," ../../src/qgis-"," ../../src/qgis-")
|
||||
|
||||
|
||||
DEFINES = QGISDEBUG
|
||||
DEFINES = QGISDEBUG
|
||||
|
||||
LIBS += -lcppunit -dl $$QGIS_OBJS $$GDAL_LIBS -lsqlite3
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user