aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/tst_qmllint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r--tests/auto/qml/qmllint/tst_qmllint.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp
index 7ad5ee136e..2a6ff48baf 100644
--- a/tests/auto/qml/qmllint/tst_qmllint.cpp
+++ b/tests/auto/qml/qmllint/tst_qmllint.cpp
@@ -53,6 +53,8 @@ private Q_SLOTS:
void directoryPassedAsQmlTypesFile();
void oldQmltypes();
+ void autoqmltypes();
+
private:
QString runQmllint(const QString &fileToLint,
std::function<void(QProcess &)> handleResult,
@@ -146,6 +148,21 @@ void TestQmllint::oldQmltypes()
QVERIFY(errors.contains(QStringLiteral("Revision 0 corresponds to version 0.0; it should be 1.0.")));
}
+void TestQmllint::autoqmltypes()
+{
+ QProcess process;
+ process.setWorkingDirectory(testFile("autoqmltypes"));
+ process.start(m_qmllintPath, { QStringLiteral("test.qml") });
+
+ process.waitForFinished();
+
+ QCOMPARE(process.exitStatus(), QProcess::NormalExit);
+ QCOMPARE(process.exitCode(), 0);
+
+ QVERIFY(process.readAllStandardError().isEmpty());
+ QVERIFY(process.readAllStandardOutput().isEmpty());
+}
+
void TestQmllint::dirtyQmlCode_data()
{
QTest::addColumn<QString>("filename");