summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2020-03-20 13:17:25 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-04-01 11:17:43 +0300
commit4daa6baa202831779291587be04d88b5d5f1586c (patch)
treeacd8b6378301d83707ce98d9bc87a6b04c2c8280 /test
parenta67aaca56b21f334018a5d10e3d5a691bdc4e98a (diff)
downloadqtlocation-mapboxgl-4daa6baa202831779291587be04d88b5d5f1586c.tar.gz
[test] Disable logging thread
some tests are counting the number of logs to determine pass/fail so disable separate logging thread for them.
Diffstat (limited to 'test')
-rw-r--r--test/src/mbgl/test/fixture_log_observer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/src/mbgl/test/fixture_log_observer.cpp b/test/src/mbgl/test/fixture_log_observer.cpp
index d768c0284a..b27795abb4 100644
--- a/test/src/mbgl/test/fixture_log_observer.cpp
+++ b/test/src/mbgl/test/fixture_log_observer.cpp
@@ -60,6 +60,7 @@ size_t FixtureLog::Observer::count(const Message& message, bool substring) const
FixtureLog::FixtureLog() : observer(new FixtureLogObserver(this)) {
Log::setObserver(std::unique_ptr<Log::Observer>(observer));
+ Log::useLogThread(false);
}
bool FixtureLog::empty() const {