Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-04-16 21:11:59 +0300
committerHannah von Reth <hannah.vonreth@owncloud.com>2020-04-16 21:11:59 +0300
commit5663145748bd4548c3437d1b07d7ef0048ce5481 (patch)
tree2cd196f6aae4bc898f9aa955e2d29689fe18cde0 /test
parente2ffcef30d063bf1f0be19ccaf2e90d052589513 (diff)
parent32d5e08f2a6646d7082eb24e12edb125853305fc (diff)
Merge remote-tracking branch 'origin/2.6'
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt13
-rw-r--r--test/testoauth.cpp4
2 files changed, 11 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 463cdbfce..0e1904b60 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -89,8 +89,11 @@ owncloud_add_test(OAuth "syncenginetestutils.h")
configure_file(test_journal.db "${PROJECT_BINARY_DIR}/bin/test_journal.db" COPYONLY)
-find_package(CMocka)
-if (CMOCKA_FOUND)
- include(AddCMockaTest)
- add_subdirectory(csync)
-endif (CMOCKA_FOUND)
+if (NOT WIN32)
+ # the tests still need porting
+ find_package(CMocka)
+ if (CMOCKA_FOUND)
+ include(AddCMockaTest)
+ add_subdirectory(csync)
+ endif (CMOCKA_FOUND)
+endif()
diff --git a/test/testoauth.cpp b/test/testoauth.cpp
index 5d0e64334..a68d71497 100644
--- a/test/testoauth.cpp
+++ b/test/testoauth.cpp
@@ -268,7 +268,9 @@ private slots:
ASSERT(browserReply);
// simulate the fact that the browser is closing the connection
browserReply->abort();
- QCoreApplication::processEvents();
+ // don't process network events, as it messes up the execution order and
+ // causes an Qt internal crash
+ QCoreApplication::processEvents(QEventLoop::ExcludeSocketNotifiers);
ASSERT(state == BrowserOpened);
state = TokenAsked;