Git commit 4680718bfe6cb0c9d5608eca6131a2c1f7b24c1b by Albert Astals Cid. Committed on 31/12/2016 at 16:12. Pushed by aacid into branch 'master'. Add datetime to debug to try to figure out what's getting stuck M +30 -30 autotests/kfiledialog_unittest.cpp https://commits.kde.org/plasma-integration/4680718bfe6cb0c9d5608eca6131a2c1= f7b24c1b diff --git a/autotests/kfiledialog_unittest.cpp b/autotests/kfiledialog_uni= ttest.cpp index 1354222..f71950c 100644 --- a/autotests/kfiledialog_unittest.cpp +++ b/autotests/kfiledialog_unittest.cpp @@ -258,79 +258,79 @@ private Q_SLOTS: QFETCH(bool, qtOverwriteOption); QFETCH(bool, messageBoxExpected); = - qDebug() << "1"; + qDebug() << QDateTime::currentDateTime() << "1"; QTemporaryFile tempFile(QDir::tempPath()+"/kfiledialogtest_XXXXXX"= ); - qDebug() << "1.1"; + qDebug() << QDateTime::currentDateTime() << "1.1"; tempFile.setAutoRemove(true); - qDebug() << "1.2"; + qDebug() << QDateTime::currentDateTime() << "1.2"; tempFile.open(); - qDebug() << "1.3"; + qDebug() << QDateTime::currentDateTime() << "1.3"; QString tempName =3D tempFile.fileName(); - qDebug() << "1.4"; + qDebug() << QDateTime::currentDateTime() << "1.4"; tempFile.close(); - qDebug() << "1.5"; + qDebug() << QDateTime::currentDateTime() << "1.5"; int idx =3D tempName.lastIndexOf('/'); = - qDebug() << "2"; + qDebug() << QDateTime::currentDateTime() << "2"; = QFileDialog dialog; - qDebug() << "2.1"; + qDebug() << QDateTime::currentDateTime() << "2.1"; dialog.setAcceptMode(QFileDialog::AcceptSave); - qDebug() << "2.2"; + qDebug() << QDateTime::currentDateTime() << "2.2"; if (qtOverwriteOption) dialog.setOption(QFileDialog::DontConfirmOv= erwrite); - qDebug() << "2.3"; + qDebug() << QDateTime::currentDateTime() << "2.3"; dialog.setDirectory(tempName.left(idx+1)); - qDebug() << "2.4"; + qDebug() << QDateTime::currentDateTime() << "2.4"; dialog.selectFile(tempName.mid(idx+1)); - qDebug() << "2.5"; + qDebug() << QDateTime::currentDateTime() << "2.5"; dialog.open(); = - qDebug() << "3"; + qDebug() << QDateTime::currentDateTime() << "3"; = KFileWidget *fw =3D findFileWidget(); - qDebug() << "3.1"; + qDebug() << QDateTime::currentDateTime() << "3.1"; QVERIFY(fw); - qDebug() << "3.2"; + qDebug() << QDateTime::currentDateTime() << "3.2"; QTest::qWaitForWindowExposed(fw->window()); - qDebug() << "3.3"; + qDebug() << QDateTime::currentDateTime() << "3.3"; QCOMPARE(fw->isVisible(), true); = - qDebug() << "4"; + qDebug() << QDateTime::currentDateTime() << "4"; = messageBoxSeen =3D false; checkMessageBoxRun =3D false; - qDebug() << "4.1"; - QTimer::singleShot(5000, this, SLOT(checkMessageBox())); - qDebug() << "4.2"; + qDebug() << QDateTime::currentDateTime() << "4.1"; + QTimer::singleShot(3500, this, SLOT(checkMessageBox())); + qDebug() << QDateTime::currentDateTime() << "4.2"; fw->slotOk(); = - qDebug() << "5"; + qDebug() << QDateTime::currentDateTime() << "5"; = fw->slotCancel(); - qDebug() << "5.1"; + qDebug() << QDateTime::currentDateTime() << "5.1"; QTRY_VERIFY(checkMessageBoxRun); QVERIFY(messageBoxSeen =3D=3D messageBoxExpected); = - qDebug() << "6"; + qDebug() << QDateTime::currentDateTime() << "6"; } = protected Q_SLOTS: void checkMessageBox() { checkMessageBoxRun =3D true; - qDebug() << "A"; + qDebug() << QDateTime::currentDateTime() << "A"; QDialog *msgbox =3D findMessageBox(); - qDebug() << "B"; + qDebug() << QDateTime::currentDateTime() << "B"; if (!msgbox) return; - qDebug() << "C"; + qDebug() << QDateTime::currentDateTime() << "C"; QTest::qWaitForWindowExposed(msgbox); - qDebug() << "D"; + qDebug() << QDateTime::currentDateTime() << "D"; QCOMPARE(msgbox->isVisible(), true); - qDebug() << "E"; + qDebug() << QDateTime::currentDateTime() << "E"; messageBoxSeen =3D true; - qDebug() << "F"; + qDebug() << QDateTime::currentDateTime() << "F"; msgbox->close(); - qDebug() << "G"; + qDebug() << QDateTime::currentDateTime() << "G"; } = private: