File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,9 @@ void TestQgsRasterLayer::initTestCase()
70
70
{
71
71
// init QGIS's paths - true means that all path will be inited from prefix
72
72
QString qgisPath = QCoreApplication::applicationDirPath ();
73
- QgsApplication::setPrefixPath (qgisPath, TRUE );
74
- #ifdef Q_OS_LINUX
75
- QgsApplication::setPkgDataPath (qgisPath + " /../share/qgis" );
76
- #endif
73
+ QgsApplication::setPrefixPath (INSTALL_PREFIX, true );
74
+ QgsApplication::showSettings ();
77
75
// create some objects that will be used in all tests...
78
-
79
- std::cout << " Prefix PATH: " << QgsApplication::prefixPath ().toLocal8Bit ().data () << std::endl;
80
- std::cout << " Plugin PATH: " << QgsApplication::pluginPath ().toLocal8Bit ().data () << std::endl;
81
- std::cout << " PkgData PATH: " << QgsApplication::pkgDataPath ().toLocal8Bit ().data () << std::endl;
82
- std::cout << " User DB PATH: " << QgsApplication::qgisUserDbFilePath ().toLocal8Bit ().data () << std::endl;
83
-
84
76
// create a raster layer that will be used in all tests...
85
77
mTestDataDir = QString (TEST_DATA_DIR) + QDir::separator (); // defined in CmakeLists.txt
86
78
QString myFileName = mTestDataDir + " tenbytenraster.asc" ;
You can’t perform that action at this time.
0 commit comments