Commit Graph

12 Commits

Author SHA1 Message Date
Ulf Hermann 5aa0a4f722 Replace all includes of windows.h with qt_windows.h
We don't want min and max to be macros.

Change-Id: Ifa79eaecf00c9f8b9c61494aa9d883eebfdabc65
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-10-25 20:10:59 +02:00
Tatiana Borisova 8a70b5f9d3 Fix autotest private API part compilation for INTEGRITY
- process should be used with config check

Change-Id: Ie35df508cacb16078face96ef1834a895614a870
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2021-10-11 22:21:35 +03:00
Mitch Curtis e310dadef7 Consolidate test helpers into private libraries
Previously each test would include and build sources from the shared
folder. Now we make those sources a library, build it once, then have
each test link to it instead.

We also take the opportunity to move some helpers that qtquickcontrols2
had added into the quicktestutils library where it makes sense, and
for the helpers that don't make sense to be there, move them into
quickcontrolstestutils.

We add the libraries to src/ so that they are internal modules built as
part of Qt, rather than tests. That way we can use them in a standalone
test outside of qtdeclarative.

Task-number: QTBUG-95621
Pick-to: 6.2
Change-Id: I0a2ab3976fdbff2e4414df7bdc0808f16453b80a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-09-13 21:17:04 +02:00
Tor Arne Vestbø c04cec25c3 Blacklist and fix failing tests on ARM macOS
Task-number: QTQAINFRA-4431
Change-Id: I478128b9e7b45d5027e5d3d5ce388e5fc47587e3
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-05-04 22:07:06 +02:00
Volker Hilsheimer 38b9c4f327 Fix additional warnings from usage of deprecated APIs
Replace more QLibaryInfo::location with QLibraryInfo::path

Replace old event accessors APIs, including relevant comments.

Change-Id: Ie205fc93b6e1c0dfb3dca9100fbde417ab68fc9f
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2020-09-16 16:24:21 +02:00
Jan Arve Sæther f7156b7de9 Skip perfMapFile test on Android
qmljs is not available on Android, so we skip the test

Change-Id: I93655fcbcaa405edf35846a93ef1467d651a62d7
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-08-13 11:37:59 +02:00
Ulf Hermann 561a2cec9b Transform V4_ENABLE_JIT into a feature
This way you can enable or disable the JIT when configuring Qt. The
conditions for the availability of the JIT have also been cleaned up.
There is no reason anymore to artificially restrict availability on x86
and x86_64. The reason for the existence of those clauses are old
problems on windows that have been fixed by now. However, on arm and
arm64, we need a specialization of the cacheFlush() function for each OS
to be supported. Therefore, restrict to the systems for which such a
specialization exists. iOS and tvOS are technically supported and you
can enable the JIT via the feature flag now. Due to Apple's policy we
disable it by default, though.

Change-Id: I5fe2a2bf6799b2d11b7ae7c7a85962bcbf44f919
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-04-25 11:07:36 +00:00
Qt Forward Merge Bot 761d238066 Merge remote-tracking branch 'origin/5.12' into 5.13
Conflicts:
	tests/auto/qml/qv4assembler/tst_qv4assembler.cpp

Change-Id: I9d31c982881a617099354bf8acceb76332f11496
2019-04-17 07:58:19 +02:00
Martin Storsjö 0f3e0877d5 Test whether the JIT is enabled on architectures/OSes as intended
Change-Id: Ifdba6f08545e07b04cc7d9ace48ad0599c41229c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-04-16 11:52:11 +00:00
Samuli Piippo 587d789fa5 Use lowercase name for window header
Compilation otherwise fails when cross-compiling on linux,
since the filename is is lowercased.

Change-Id: I0b25f814543b677802cd6f07dc91964547a6028a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-03-12 11:26:55 +00:00
Ulf Hermann 74d23ca548 V4: Generate function tables on 64bit windows
In order for global exception handlers to be called reliably, the runtime
needs to unwind through JIT-generated code. This can be facilitated by
installing a "function table" for each JITed function that specifies "use
the frame pointer".

Also make sure to generate a function table for JIT'ed regular
expressions. Those were forgotten also in the linux case.

Fixes: QTBUG-50061
Change-Id: Ib0b8ae9356ed80afe1cab017e36efa4ccbe73f90
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-12-03 08:28:36 +00:00
Ulf Hermann 2f0d959bfb Use a separate process for testing perf.map file
The environment change was too fragile. If the JIT ran before the
relevant test function was executed, it would set the doProfile flag to
false, and never re-evaluate the environment variable. The qmljs binary
is only available for private tests, and the test didn't quite fit into
qjsengine anyway. Therefore a new test for the QV4Assembler class that
genertes the map files is added.

Change-Id: Ice0c18daaee9f0f4f0f15eba0261bcc01aa4b105
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-03-27 13:52:52 +00:00