[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-integration] autotests: Add datetime to debug to try to figure out what's getting stuck
From: Albert Astals Cid <null () kde ! org>
Date: 2016-12-31 16:12:28
Message-ID: E1cNMGi-00053h-DZ () code ! kde ! org
[Download RAW message or body]
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/4680718bfe6cb0c9d5608eca6131a2c1f7b24c1b
diff --git a/autotests/kfiledialog_unittest.cpp b/autotests/kfiledialog_unittest.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 = tempFile.fileName();
- qDebug() << "1.4";
+ qDebug() << QDateTime::currentDateTime() << "1.4";
tempFile.close();
- qDebug() << "1.5";
+ qDebug() << QDateTime::currentDateTime() << "1.5";
int idx = 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::DontConfirmOverwrite);
- 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 = 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 = false;
checkMessageBoxRun = 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 == messageBoxExpected);
- qDebug() << "6";
+ qDebug() << QDateTime::currentDateTime() << "6";
}
protected Q_SLOTS:
void checkMessageBox()
{
checkMessageBoxRun = true;
- qDebug() << "A";
+ qDebug() << QDateTime::currentDateTime() << "A";
QDialog *msgbox = 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 = true;
- qDebug() << "F";
+ qDebug() << QDateTime::currentDateTime() << "F";
msgbox->close();
- qDebug() << "G";
+ qDebug() << QDateTime::currentDateTime() << "G";
}
private:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic