]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
Fix FolderWatcherTest on macOS and Windows
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 7 Feb 2017 20:30:55 +0000 (21:30 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Tue, 14 Feb 2017 13:32:41 +0000 (14:32 +0100)
commit0be6cd3bf723d3b335e966fceaf5c9ea0254c706
treec599f9641390ec37ec5aa87e1bcd3b281ac4719e
parent867b78052d868280cb96ae6803bee27bd6ad19d3
Fix FolderWatcherTest on macOS and Windows

- We need to use a QGuiApplication on macOS or else we don't get notifications
- Switch to use QSignalSpy rather than lists and sleeps
- Use system() for all modifications since we pass kFSEventStreamCreateFlagIgnoreSelf
- Keep using the local process on Windows since it catches its own events
test/testfolderwatcher.cpp