Change in kio[master]: Add debugging output to indicate which file got changed

Jan Kundrát (Code Review) noreply at kde.org
Sun Dec 7 15:53:54 UTC 2014


Jan Kundrát has uploaded a new change for review.

  https://gerrit.vesnicky.cesnet.cz/r/206

Change subject: Add debugging output to indicate which file got changed
......................................................................

Add debugging output to indicate which file got changed

This test case has failed twice in a row in my CI environment, so let's
take a look to see what is getting changed.

Change-Id: I266394c7f176f4cdfd7b087995dd9031b76fd8be
---
M autotests/kdirlistertest.cpp
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.vesnicky.cesnet.cz:29418/kio refs/changes/06/206/1

diff --git a/autotests/kdirlistertest.cpp b/autotests/kdirlistertest.cpp
index 0ceee4e..867d11d 100644
--- a/autotests/kdirlistertest.cpp
+++ b/autotests/kdirlistertest.cpp
@@ -433,6 +433,10 @@
     org::kde::KDirNotify::emitFilesAdded(QUrl::fromLocalFile(path));
     QTest::qWait(200);
     org::kde::KDirNotify::emitFilesChanged(QList<QUrl>() << QUrl::fromLocalFile(directoryFile));
+    foreach (const QPair<KFileItem, KFileItem> item, m_refreshedItems) {
+	qDebug() << "1st: " << item.first.url().toLocalFile() << item.first.time(KFileItem::ModificationTime) << item.first.time(KFileItem::AccessTime) << item.first.user() << item.first.group();
+	qDebug() << "2nd: " << item.second.url().toLocalFile() << item.second.time(KFileItem::ModificationTime) << item.second.time(KFileItem::AccessTime) << item.second.user() << item.second.group();
+    }
     QCOMPARE(m_refreshedItems.count(), 0);
 
     org::kde::KDirNotify::emitFilesChanged(QList<QUrl>() << QUrl::fromLocalFile(path));

-- 
To view, visit https://gerrit.vesnicky.cesnet.cz/r/206
To unsubscribe, visit https://gerrit.vesnicky.cesnet.cz/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I266394c7f176f4cdfd7b087995dd9031b76fd8be
Gerrit-PatchSet: 1
Gerrit-Project: kio
Gerrit-Branch: master
Gerrit-Owner: Jan Kundrát <jkt at kde.org>


More information about the Kde-frameworks-devel mailing list