forked from qt-creator/qt-creator
Meson: Fix autotests
Change-Id: I5f690efe9db19ef8ae6f86ed5556b4939bb52a05 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
|
||||
#include "exewrappers/mesonwrapper.h"
|
||||
|
||||
#include <utils/launcherinterface.h>
|
||||
#include <utils/processreaper.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
@@ -44,7 +48,12 @@ class AMesonWrapper : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
private slots:
|
||||
void initTestCase() {}
|
||||
void initTestCase()
|
||||
{
|
||||
Utils::LauncherInterface::startLauncher(
|
||||
QCoreApplication::instance()->applicationDirPath() + '/'
|
||||
+ QLatin1String(TEST_RELATIVE_LIBEXEC_PATH));
|
||||
}
|
||||
|
||||
void shouldFindMesonFromPATH()
|
||||
{
|
||||
@@ -104,7 +113,13 @@ private slots:
|
||||
Utils::FilePath::fromString(build_dir.path()))));
|
||||
}
|
||||
|
||||
void cleanupTestCase() {}
|
||||
void cleanupTestCase()
|
||||
{
|
||||
Utils::LauncherInterface::stopLauncher();
|
||||
}
|
||||
|
||||
private:
|
||||
Utils::ProcessReaper processReaper;
|
||||
};
|
||||
|
||||
QTEST_MAIN(AMesonWrapper)
|
||||
|
||||
Reference in New Issue
Block a user