Skip to content

Commit e6d6bbd

Browse files
author
timlinux
committedJul 12, 2008
No need to debug out qgsappication vars - just call showSettings()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8761 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed
 

‎tests/src/core/testqgsmaprender.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,16 @@ class TestQgsMapRender: public QObject
7474

7575
void TestQgsMapRender::initTestCase()
7676
{
77+
//
78+
// Runs once before any tests are run
79+
//
7780
// init QGIS's paths - true means that all path will be inited from prefix
7881
QString qgisPath = QCoreApplication::applicationDirPath ();
79-
QgsApplication::setPrefixPath(qgisPath, TRUE);
80-
#ifdef Q_OS_LINUX
81-
QgsApplication::setPkgDataPath(qgisPath + "/../share/qgis");
82-
QgsApplication::setPluginPath(qgisPath + "/../lib/qgis");
83-
#endif
82+
QgsApplication::setPrefixPath(INSTALL_PREFIX, true);
83+
QgsApplication::showSettings();
8484
// Instantiate the plugin directory so that providers are loaded
8585
QgsProviderRegistry::instance(QgsApplication::pluginPath());
86-
std::cout << "Prefix PATH: " << QgsApplication::prefixPath().toLocal8Bit().data() << std::endl;
87-
std::cout << "Plugin PATH: " << QgsApplication::pluginPath().toLocal8Bit().data() << std::endl;
88-
std::cout << "PkgData PATH: " << QgsApplication::pkgDataPath().toLocal8Bit().data() << std::endl;
89-
std::cout << "User DB PATH: " << QgsApplication::qgisUserDbFilePath().toLocal8Bit().data() << std::endl;
86+
9087

9188
//create some objects that will be used in all tests...
9289
mEncoding = "UTF-8";

0 commit comments

Comments
 (0)
Please sign in to comment.