From d79dde6dfa27c4ad94b65cecfadda5af5ee1f2d2 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 10 May 2017 12:51:41 +0200 Subject: [PATCH] QmlProfiler: Increase flame graph view context menu test timeout Apparently macOS will block the event loop until a real mouse click happens if you open and close context menus in quick succession. When it does that, the timer won't hit anymore and the mouse event to trigger the next test step won't be generated. Change-Id: Ie0c05d8a5a2020fe46381358133cd7cdbbf42299 Reviewed-by: Christian Kandeler --- src/plugins/qmlprofiler/tests/flamegraphview_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp b/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp index 22ef4668b9b..f6e704a072b 100644 --- a/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp +++ b/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp @@ -122,7 +122,7 @@ void FlameGraphViewTest::testContextMenu() QSignalSpy spy(&view, SIGNAL(showFullRange())); QTimer timer; - timer.setInterval(50); + timer.setInterval(500); int menuClicks = 0; connect(&timer, &QTimer::timeout, this, [&]() {