diff options
author | dac <qt-info@nokia.com> | 2010-08-17 15:05:47 +1000 |
---|---|---|
committer | dac <qt-info@nokia.com> | 2010-08-17 15:05:47 +1000 |
commit | 1f0adf43b862dedf971e23bab751e458fabb44f3 (patch) | |
tree | df15187d90b208a24d52f8d59950d9797ccfa8c0 | |
parent | a2c67f20eb580a6bdd6cb60891d61fbe978463a3 (diff) |
Prevent "nothing tested" failures appearing, unless nothing really
is tested (no application started and no manual test prompts).
-rw-r--r-- | libqsystemtest/qsystemtest.cpp | 2 | ||||
-rw-r--r-- | libqsystemtest/qsystemtest_p.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libqsystemtest/qsystemtest.cpp b/libqsystemtest/qsystemtest.cpp index d579eb0..49a4fff 100644 --- a/libqsystemtest/qsystemtest.cpp +++ b/libqsystemtest/qsystemtest.cpp @@ -2270,6 +2270,8 @@ void QSystemTest::startApplication( const QString &application, const QStringLis device_controller->killApplications(); } configTarget(); + + test_result.addSuccess( "Application started", qPrintable(currentFile()), currentLine() ); } /*! diff --git a/libqsystemtest/qsystemtest_p.cpp b/libqsystemtest/qsystemtest_p.cpp index 877e885..ce029c7 100644 --- a/libqsystemtest/qsystemtest_p.cpp +++ b/libqsystemtest/qsystemtest_p.cpp @@ -894,6 +894,7 @@ void QSystemTest::showPromptDialog( const QString &text ) QString failureMessage = failureUi.failureEdit->toPlainText(); if (ret) { + test_result.addSuccess( "Manual verification accepted by user", qPrintable(currentFile()), currentLine() ); #ifdef Q_OS_MAC if (!active_window.isEmpty()) activateWindow(active_window); #endif |