mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
Autotests: Clean test profile directory before each test
This commit is contained in:
parent
069c10c1f1
commit
056d5ec3aa
@ -16,12 +16,14 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* ============================================================ */
|
||||
#include "mainapplication.h"
|
||||
#include "qztools.h"
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
#define FALKONTEST_MAIN(Test) \
|
||||
int main(int argc, char **argv) \
|
||||
{ \
|
||||
QzTools::removeDir(QDir::tempPath() + QSL("/Falkon-test")); \
|
||||
MainApplication::setTestModeEnabled(true); \
|
||||
MainApplication app(argc, argv); \
|
||||
QTEST_DISABLE_KEYPAD_NAVIGATION; \
|
||||
|
@ -94,7 +94,7 @@ void DataPaths::init()
|
||||
}
|
||||
|
||||
if (MainApplication::isTestModeEnabled()) {
|
||||
m_paths[Config].append(QDir::tempPath() + QL1S("/QupZilla-test"));
|
||||
m_paths[Config].append(QDir::tempPath() + QSL("/Falkon-test"));
|
||||
} else {
|
||||
m_paths[Config].append(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user