~timo-jyrinki/qtpackaging/qtdeclarative

« back to all changes in this revision

Viewing changes to debian/patches/skip_failing_i386_test.patch

  • Committer: Timo Jyrinki
  • Date: 2016-10-17 10:06:38 UTC
  • Revision ID: git-v1:2918e4ac1c99e064e452117d612d1955e1dd9a9d
Skip certain failing tests on i386 and ppc64el tests on xenial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -urN qtdeclarative-opensource-src-5.6.1.old/tests/auto/qml/qjsengine/tst_qjsengine.cpp qtdeclarative-opensource-src-5.6.1/tests/auto/qml/qjsengine/tst_qjsengine.cpp
 
2
--- qtdeclarative-opensource-src-5.6.1.old/tests/auto/qml/qjsengine/tst_qjsengine.cpp   2016-05-20 20:56:32.000000000 +0000
 
3
+++ qtdeclarative-opensource-src-5.6.1/tests/auto/qml/qjsengine/tst_qjsengine.cpp       2016-10-17 09:19:57.062688737 +0000
 
4
@@ -39,6 +39,7 @@
 
5
 #include <qgraphicsitem.h>
 
6
 #include <qstandarditemmodel.h>
 
7
 #include <QtCore/qnumeric.h>
 
8
+#include <QtCore/QSysInfo>
 
9
 #include <qqmlengine.h>
 
10
 #include <qqmlcomponent.h>
 
11
 #include <stdlib.h>
 
12
@@ -3788,6 +3789,10 @@
 
13
 // QTBUG-44039 and QTBUG-43885:
 
14
 void tst_QJSEngine::toFixed()
 
15
 {
 
16
+    // Fails on i386 at the moment LP: #1634063
 
17
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
18
+        QSKIP("Skipping test on i386 LP: #1634063");
 
19
+    }
 
20
     QJSEngine engine;
 
21
     QJSValue result = engine.evaluate(QStringLiteral("(12.5).toFixed()"));
 
22
     QVERIFY(result.isString());
 
23
diff -urN qtdeclarative-opensource-src-5.6.1.old/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp qtdeclarative-opensource-src-5.6.1/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp
 
24
--- qtdeclarative-opensource-src-5.6.1.old/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp 2016-05-20 20:56:32.000000000 +0000
 
25
+++ qtdeclarative-opensource-src-5.6.1/tests/auto/qml/qqmlqt/tst_qqmlqt.cpp     2016-10-17 09:47:11.766889527 +0000
 
26
@@ -41,6 +41,7 @@
 
27
 #include <QDesktopServices>
 
28
 #include <QDir>
 
29
 #include <QCryptographicHash>
 
30
+#include <QtCore/QSysInfo>
 
31
 #include <QtQuick/QQuickItem>
 
32
 #include <QSignalSpy>
 
33
 #include <QVector2D>
 
34
@@ -263,6 +264,11 @@
 
35
 
 
36
 void tst_qqmlqt::rect()
 
37
 {
 
38
+    // Fails on i386 at the moment LP: #1634063
 
39
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
40
+        QSKIP("Skipping test on i386 LP: #1634063");
 
41
+    }
 
42
+
 
43
     QQmlComponent component(&engine, testFileUrl("rect.qml"));
 
44
 
 
45
     QString warning1 = component.url().toString() + ":6: Error: Qt.rect(): Invalid arguments";
 
46
@@ -284,6 +290,11 @@
 
47
 
 
48
 void tst_qqmlqt::point()
 
49
 {
 
50
+    // Fails on i386 at the moment LP: #1634063
 
51
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
52
+        QSKIP("Skipping test on i386 LP: #1634063");
 
53
+    }
 
54
+
 
55
     QQmlComponent component(&engine, testFileUrl("point.qml"));
 
56
 
 
57
     QString warning1 = component.url().toString() + ":6: Error: Qt.point(): Invalid arguments";
 
58
@@ -304,6 +315,11 @@
 
59
 
 
60
 void tst_qqmlqt::size()
 
61
 {
 
62
+    // Fails on i386 at the moment LP: #1634063
 
63
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
64
+        QSKIP("Skipping test on i386 LP: #1634063");
 
65
+    }
 
66
+
 
67
     QQmlComponent component(&engine, testFileUrl("size.qml"));
 
68
 
 
69
     QString warning1 = component.url().toString() + ":7: Error: Qt.size(): Invalid arguments";
 
70
@@ -325,6 +341,11 @@
 
71
 
 
72
 void tst_qqmlqt::vector2d()
 
73
 {
 
74
+    // Fails on i386 at the moment LP: #1634063
 
75
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
76
+        QSKIP("Skipping test on i386 LP: #1634063");
 
77
+    }
 
78
+
 
79
     QQmlComponent component(&engine, testFileUrl("vector2.qml"));
 
80
 
 
81
     QString warning1 = component.url().toString() + ":6: Error: Qt.vector2d(): Invalid arguments";
 
82
@@ -345,6 +366,11 @@
 
83
 
 
84
 void tst_qqmlqt::vector3d()
 
85
 {
 
86
+    // Fails on i386 at the moment LP: #1634063
 
87
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
88
+        QSKIP("Skipping test on i386 LP: #1634063");
 
89
+    }
 
90
+
 
91
     QQmlComponent component(&engine, testFileUrl("vector.qml"));
 
92
 
 
93
     QString warning1 = component.url().toString() + ":6: Error: Qt.vector3d(): Invalid arguments";
 
94
@@ -365,6 +391,11 @@
 
95
 
 
96
 void tst_qqmlqt::vector4d()
 
97
 {
 
98
+    // Fails on i386 at the moment LP: #1634063
 
99
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
100
+        QSKIP("Skipping test on i386 LP: #1634063");
 
101
+    }
 
102
+
 
103
     QQmlComponent component(&engine, testFileUrl("vector4.qml"));
 
104
 
 
105
     QString warning1 = component.url().toString() + ":6: Error: Qt.vector4d(): Invalid arguments";
 
106
@@ -385,6 +416,11 @@
 
107
 
 
108
 void tst_qqmlqt::quaternion()
 
109
 {
 
110
+    // Fails on i386 at the moment LP: #1634063
 
111
+    if (QSysInfo::buildCpuArchitecture() == "i386") {
 
112
+        QSKIP("Skipping test on i386 LP: #1634063");
 
113
+    }
 
114
+
 
115
     QQmlComponent component(&engine, testFileUrl("quaternion.qml"));
 
116
 
 
117
     QString warning1 = component.url().toString() + ":6: Error: Qt.quaternion(): Invalid arguments";