[QGIS Commit] r8761 - trunk/qgis/tests/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Jul 12 16:24:49 EDT 2008
Author: timlinux
Date: 2008-07-12 16:24:49 -0400 (Sat, 12 Jul 2008)
New Revision: 8761
Modified:
trunk/qgis/tests/src/core/testqgsmaprender.cpp
Log:
No need to debug out qgsappication vars - just call showSettings()
Modified: trunk/qgis/tests/src/core/testqgsmaprender.cpp
===================================================================
--- trunk/qgis/tests/src/core/testqgsmaprender.cpp 2008-07-12 18:40:26 UTC (rev 8760)
+++ trunk/qgis/tests/src/core/testqgsmaprender.cpp 2008-07-12 20:24:49 UTC (rev 8761)
@@ -74,20 +74,17 @@
void TestQgsMapRender::initTestCase()
{
+ //
+ // Runs once before any tests are run
+ //
// init QGIS's paths - true means that all path will be inited from prefix
QString qgisPath = QCoreApplication::applicationDirPath ();
- QgsApplication::setPrefixPath(qgisPath, TRUE);
-#ifdef Q_OS_LINUX
- QgsApplication::setPkgDataPath(qgisPath + "/../share/qgis");
- QgsApplication::setPluginPath(qgisPath + "/../lib/qgis");
-#endif
+ QgsApplication::setPrefixPath(INSTALL_PREFIX, true);
+ QgsApplication::showSettings();
// Instantiate the plugin directory so that providers are loaded
QgsProviderRegistry::instance(QgsApplication::pluginPath());
- std::cout << "Prefix PATH: " << QgsApplication::prefixPath().toLocal8Bit().data() << std::endl;
- std::cout << "Plugin PATH: " << QgsApplication::pluginPath().toLocal8Bit().data() << std::endl;
- std::cout << "PkgData PATH: " << QgsApplication::pkgDataPath().toLocal8Bit().data() << std::endl;
- std::cout << "User DB PATH: " << QgsApplication::qgisUserDbFilePath().toLocal8Bit().data() << std::endl;
+
//create some objects that will be used in all tests...
mEncoding = "UTF-8";
QgsField myField1("Value",QVariant::Int,"int",10,0,"Value on lon");
More information about the QGIS-commit
mailing list