From 3aaadc5226e8914a562daa1d3d123da929d1affd Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@digia.com>
Date: Mon, 22 Oct 2012 12:56:19 +0200
Subject: [PATCH] Skip flaky subtests of tests/auto/qmltest.

- Skip test_key_click() in events/tst_events.qml.
- Skip test_pixel pixel/tst_pixel.qml.

Task-number: QTBUG-27671
Change-Id: Id78c34244d346910e28a2368f9fe3a41f54b8fb9
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
---
 tests/auto/qmltest/events/tst_events.qml | 1 +
 tests/auto/qmltest/pixel/tst_pixel.qml   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/auto/qmltest/events/tst_events.qml b/tests/auto/qmltest/events/tst_events.qml
index 059541147e..4c33988960 100644
--- a/tests/auto/qmltest/events/tst_events.qml
+++ b/tests/auto/qmltest/events/tst_events.qml
@@ -73,6 +73,7 @@ Rectangle {
         when: windowShown       // Must have this line for events to work.
 
         function test_key_click() {
+            skip("test_key_click() is unstable, QTBUG-27671")
             keyClick(Qt.Key_Left)
             tryCompare(top, "leftKeyPressed", true, 10000)
             tryCompare(top, "leftKeyReleased", true, 10000)
diff --git a/tests/auto/qmltest/pixel/tst_pixel.qml b/tests/auto/qmltest/pixel/tst_pixel.qml
index 67eca074df..f10840b9ab 100644
--- a/tests/auto/qmltest/pixel/tst_pixel.qml
+++ b/tests/auto/qmltest/pixel/tst_pixel.qml
@@ -52,6 +52,7 @@ Rectangle {
         when: windowShown
 
         function test_pixel() {
+           skip("test_pixel() is unstable, QTBUG-27671")
            var img = grabImage(rect);
            compare(img.pixel(20, 20), Qt.rgba(255, 0, 0, 255));
            compare(img.red(1,1), 255);
-- 
GitLab