aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-09-08 11:00:59 +0200
committerLars Knoll <lars.knoll@qt.io>2018-09-08 16:51:03 +0000
commit6e36fdb2f65ede9c84d2e822f1a69d31a756bc49 (patch)
treeb830506f6e1834e4ba59684455690b4ef7a120de /tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
parent26dc00747e1e2632435d01b7562443dff4f2e7d3 (diff)
Skip all realm related tests
We don't support realms currently, and it's unclear whether we'll ever need the support. Change-Id: I023f84d477f374b3cef2590a78542c0c9408a144 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp')
-rw-r--r--tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp b/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
index 9f23326d8c..a16f2414b0 100644
--- a/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
+++ b/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
@@ -69,6 +69,11 @@ static const char *excludedFeatures[] = {
nullptr
};
+static const char *excludedFilePatterns[] = {
+ "realm",
+ nullptr
+};
+
QT_BEGIN_NAMESPACE
namespace QV4 {
@@ -234,6 +239,15 @@ bool Test262Runner::loadTests()
continue;
if (file.startsWith(annexB) || file.startsWith(harness) || file.startsWith(intl402))
continue;
+ const char **excluded = excludedFilePatterns;
+ bool skip = false;
+ while (*excluded) {
+ if (file.contains(QLatin1String(*excluded)))
+ skip = true;
+ ++excluded;
+ }
+ if (skip)
+ continue;
testCases.insert(file, TestCase{ file });
}