From 281d915ba4a9b769b4198bd4bbf36404ad51502b Mon Sep 17 00:00:00 2001 From: David Skoland Date: Thu, 9 Jun 2022 12:05:24 +0200 Subject: [PATCH] Add wasm exception for tst_qchar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since wasm doesn't like filesystems that well, we omit this test in tst_qchar for wasm, this allows us to still run the test without the case where it needs to read the normalization file. Change-Id: I37e54d97e119f94e1a9ca53917d0b93183321899 Reviewed-by: Morten Johan Sørvig --- tests/auto/corelib/text/qchar/tst_qchar.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/auto/corelib/text/qchar/tst_qchar.cpp b/tests/auto/corelib/text/qchar/tst_qchar.cpp index 725a7e0d72e..1739fb5f7eb 100644 --- a/tests/auto/corelib/text/qchar/tst_qchar.cpp +++ b/tests/auto/corelib/text/qchar/tst_qchar.cpp @@ -42,8 +42,10 @@ private slots: void mirroredChar(); void decomposition(); void script(); +#if !defined(Q_OS_WASM) void normalization_data(); void normalization(); +#endif // !defined(Q_OS_WASM) void normalization_manual(); void normalizationCorrections(); void unicodeVersion(); @@ -759,6 +761,8 @@ void tst_QChar::script() QVERIFY(QChar::script(0xe0100) == QChar::Script_Inherited); } +// wasm is limited in reading filesystems, so omit this test for now +#if !defined(Q_OS_WASM) void tst_QChar::normalization_data() { QTest::addColumn("columns"); @@ -881,6 +885,7 @@ void tst_QChar::normalization() // ################# } +#endif // !defined(Q_OS_WASM) void tst_QChar::normalization_manual() {