File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -74,19 +74,16 @@ class TestQgsMapRender: public QObject
74
74
75
75
void TestQgsMapRender::initTestCase ()
76
76
{
77
+ //
78
+ // Runs once before any tests are run
79
+ //
77
80
// init QGIS's paths - true means that all path will be inited from prefix
78
81
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 ();
84
84
// Instantiate the plugin directory so that providers are loaded
85
85
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
+
90
87
91
88
// create some objects that will be used in all tests...
92
89
mEncoding = " UTF-8" ;
You can’t perform that action at this time.
0 commit comments