Revert "Fix TestSyncEngine::abortAfterFailedMkdir"
authorJocelyn Turcotte <jturcotte@woboq.com>
Fri, 17 Feb 2017 13:05:47 +0000 (14:05 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Fri, 17 Feb 2017 13:06:30 +0000 (14:06 +0100)
This reverts commit 1cec2ca13dc35aba6aaf79f42bde9a6dd00143a7
but keeps the reset() -> take() part that is probably the cause
of crashes we've seen in the crash reporter.

src/libsync/owncloudpropagator.h
test/testsyncengine.cpp

index 85fb3240a63f46bc8be68bf159401cf70d21f2fa..4c06fcf3ee34611377b7e6ebacd5d022432b3a81 100644 (file)
@@ -227,7 +227,7 @@ public:
 private slots:
     bool possiblyRunNextJob(PropagatorJob *next) {
         if (next->_state == NotYetStarted) {
-            connect(next, SIGNAL(finished(SyncFileItem::Status)), this, SLOT(slotSubJobFinished(SyncFileItem::Status)));
+            connect(next, SIGNAL(finished(SyncFileItem::Status)), this, SLOT(slotSubJobFinished(SyncFileItem::Status)), Qt::QueuedConnection);
             connect(next, SIGNAL(itemCompleted(const SyncFileItemPtr &)), this, SIGNAL(itemCompleted(const SyncFileItemPtr &)));
             connect(next, SIGNAL(progress(const SyncFileItem &,quint64)), this, SIGNAL(progress(const SyncFileItem &,quint64)));
             connect(next, SIGNAL(ready()), this, SIGNAL(ready()));
index 31f15df8e9629f9311e4e51b04534847a41600f7..ae5296ea1e48de55805b0d7eb75a0cfe6e9a96df 100644 (file)
@@ -214,6 +214,7 @@ private slots:
     }
 
     void abortAfterFailedMkdir() {
+        QSKIP("Skip for 2.3");
         FakeFolder fakeFolder{FileInfo{}};
         QSignalSpy finishedSpy(&fakeFolder.syncEngine(), SIGNAL(finished(bool)));
         fakeFolder.serverErrorPaths().append("NewFolder");