summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qbytearray
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-08-04 11:36:55 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-08-05 01:07:41 +0200
commit2f7d4f478e98bd2babe33795ac367fe6cf8a86f7 (patch)
treea5bc13919d3ae2eef0f9f25679eeee841b53ff51 /tests/auto/corelib/text/qbytearray
parente00928e48ccef084052b927ee1de1e5a557acf0b (diff)
tst_QByteArray::qUncompressCorruptedData(): MS-Win no longer hangs
Oliver Wolff reports that this test no longer hangs on Windows; and the other plafroms for which it was skipped are no longer supported, so remove the #if-ery that skips this test for platfroms on which uncompressing corrupt data used to hang. Change-Id: I94a3fd4b83338fe6e3a97ab055fe05e2f15b6b45 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qbytearray')
-rw-r--r--tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp
index 7d4b7eafa2..aa21a43d78 100644
--- a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp
+++ b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2020 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Copyright (C) 2016 Intel Corporation.
** Contact: https://www.qt.io/licensing/
**
@@ -322,12 +322,9 @@ void tst_QByteArray::qUncompressCorruptedData_data()
QTest::newRow("0xffffffff") << QByteArray("\xff\xff\xff\xff", 4);
}
-// Corrupt data causes this test to lock up on HP-UX / PA-RISC with gcc,
-// SOLARIS, and Windows.
// This test is expected to produce some warning messages in the test output.
void tst_QByteArray::qUncompressCorruptedData()
{
-#if !(defined(Q_OS_HPUX) && !defined(__ia64) && defined(Q_CC_GNU)) && !defined(Q_OS_SOLARIS) && !defined(Q_OS_WIN)
QFETCH(QByteArray, in);
QByteArray res;
@@ -336,9 +333,6 @@ void tst_QByteArray::qUncompressCorruptedData()
res = ::qUncompress(in + "blah");
QCOMPARE(res, QByteArray());
-#else
- QSKIP("This test freezes on this platform");
-#endif
}
void tst_QByteArray::qCompressionZeroTermination()
@@ -347,7 +341,6 @@ void tst_QByteArray::qCompressionZeroTermination()
QByteArray ba = ::qUncompress(::qCompress(s.toLocal8Bit()));
QVERIFY((int) *(ba.data() + ba.size()) == 0);
}
-
#endif
void tst_QByteArray::constByteArray()