diff options
Diffstat (limited to 'tests/auto/qml/qmllint/tst_qmllint.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 17 |
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 3f674fb5cc..f5ef58940b 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -56,6 +56,8 @@ private Q_SLOTS: void qmltypes_data(); void qmltypes(); + void autoqmltypes(); + private: QString runQmllint(const QString &fileToLint, std::function<void(QProcess &)> handleResult, @@ -166,6 +168,21 @@ void TestQmllint::qmltypes() runQmllint(file, true); } +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"); |