diff options
author | Piotr Wierciński <piotr.wiercinski@qt.io> | 2023-09-07 15:13:01 +0200 |
---|---|---|
committer | Piotr Wierciński <piotr.wiercinski@qt.io> | 2023-09-14 11:58:48 +0200 |
commit | 9468ef2cfb9a3ebe14382427b67aaafbbad7d847 (patch) | |
tree | 104ee997bc2fb0fddac59180e3a293b6e9ef9b5c /tests/auto/corelib/thread/qpromise/tst_qpromise.cpp | |
parent | 5ac97a38e840da4dad0d5b0e1acbf2ecb46ecf74 (diff) |
CI: Enable some tests under corelib/thread for Wasm platform
This is part of our testing effort where we try enabling more tests for
Web Assembly platform on CI. Not all tests work out of box, so some of
them will require followup work.
This commmit also introduces a new mechanism of automatically renaming
files when they are added many times with the same filename to single
translation unit.
Change-Id: I620536494ea83aeb9b294c4a35ef72b51e85a38b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'tests/auto/corelib/thread/qpromise/tst_qpromise.cpp')
-rw-r--r-- | tests/auto/corelib/thread/qpromise/tst_qpromise.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp b/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp index d332dbc5e4..bbac6e200e 100644 --- a/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp +++ b/tests/auto/corelib/thread/qpromise/tst_qpromise.cpp @@ -574,10 +574,14 @@ static inline void testCancelWhenDestroyedWithFailureHandler() void tst_QPromise::cancelWhenDestroyedWithFailureHandler() { +#ifndef QT_NO_EXCEPTIONS testCancelWhenDestroyedWithFailureHandler<void>(); testCancelWhenDestroyedWithFailureHandler<int>(); testCancelWhenDestroyedWithFailureHandler<CopyOnlyType>(); testCancelWhenDestroyedWithFailureHandler<MoveOnlyType>(); +#else + QSKIP("Exceptions are disabled, skipping the test"); +#endif } template <typename T> |