aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/toolsupport/tst_toolsupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/toolsupport/tst_toolsupport.cpp')
-rw-r--r--tests/auto/toolsupport/tst_toolsupport.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/auto/toolsupport/tst_toolsupport.cpp b/tests/auto/toolsupport/tst_toolsupport.cpp
index 893f4b95b9..625e3b660f 100644
--- a/tests/auto/toolsupport/tst_toolsupport.cpp
+++ b/tests/auto/toolsupport/tst_toolsupport.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtTest>
@@ -9,6 +9,7 @@
#include <private/qobject_p.h>
#include <private/qv4compileddata_p.h>
+#include <private/qv4executablecompilationunit_p.h>
#include <private/qv4string_p.h>
#include <private/qqmlrefcount_p.h>
#include <qobject.h>
@@ -68,7 +69,7 @@ void tst_toolsupport::offsets_data()
{
QTestData &data = QTest::newRow("sizeof(QQmlRefCount)")
<< sizeof(QQmlRefCount);
- data << 8 << 16;
+ data << 4 << 4;
}
#if RUN_MEMBER_OFFSET_TEST
@@ -77,13 +78,13 @@ void tst_toolsupport::offsets_data()
= QTest::newRow("CompiledData::CompilationUnit::data")
<< pmm_to_offsetof(&QV4::CompiledData::CompilationUnit::data);
- data << 20 << 40;
+ data << 4 << 8;
}
{
QTestData &data
- = QTest::newRow("CompiledData::CompilationUnit::runtimeStrings")
- << pmm_to_offsetof(&QV4::CompiledData::CompilationUnit::runtimeStrings);
+ = QTest::newRow("ExecutableCompilationUnit::runtimeStrings")
+ << pmm_to_offsetof(&QV4::ExecutableCompilationUnit::runtimeStrings);
data << 0 << 0;
}