diff options
Diffstat (limited to 'tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp')
-rw-r--r-- | tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp b/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp index 75df29949..dd127f626 100644 --- a/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp +++ b/tests/auto/installer/messageboxhandler/tst_messageboxhandler.cpp @@ -12,6 +12,7 @@ using namespace QInstaller; +QT_BEGIN_NAMESPACE namespace QTest { template<> char *toString(const QMessageBox::StandardButton &button) @@ -20,6 +21,7 @@ namespace QTest { return qstrdup(buttonAsString.toLatin1().data()); } } +QT_END_NAMESPACE class tst_MessageBoxHandler : public QObject { @@ -65,8 +67,8 @@ private slots: void testDefaultAction() { - const char ignoreMessage[] = "\"created critical message box TestError: 'A test error', " - "This is a test error message.\" "; + const char ignoreMessage[] = "Created critical message box \"TestError\": \"A test error\", " + "\"This is a test error message.\""; srand(time(0)); /* initialize random seed: */ int standardButtons = QMessageBox::NoButton; @@ -94,7 +96,7 @@ private slots: wantedButton = button; } - QVERIFY2(wantedButton != QMessageBox::NoButton, "Could not find a wantedButton."); + QVERIFY2(wantedButton != QMessageBox::NoButton, "Cannot find a wantedButton."); QCOMPARE(static_cast<QMessageBox::StandardButton>(returnButton), wantedButton); } while (standardButtons < m_maxStandardButtons); } |