diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-07-14 12:22:51 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-08-15 23:02:32 +0200 |
commit | b5d5385201e74c216c69aff78c383738e801a839 (patch) | |
tree | fbc24962648029238aaeb3c2d36ed3489b5db3b5 | |
parent | 401041f958c9a6a9535eb4590e8c4009cc491b5b (diff) |
tst_qbytearray: remove qCompress_data for QT_NO_COMPRESS
The _data function is useless without its test function (and it's not
used in other _data functions).
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: I7aa6006ed1a9d89008577b750af4ea717dae237f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r-- | tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp index 823dd679e5..4180e1618c 100644 --- a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp @@ -26,8 +26,8 @@ private slots: void swap(); void qChecksum_data(); void qChecksum(); - void qCompress_data(); #ifndef QT_NO_COMPRESS + void qCompress_data(); void qCompress(); void qUncompressCorruptedData_data(); void qUncompressCorruptedData(); @@ -235,6 +235,7 @@ void tst_QByteArray::qChecksum() QCOMPARE(::qChecksum(QByteArrayView(data.constData(), len), standard), static_cast<quint16>(checksum)); } +#ifndef QT_NO_COMPRESS void tst_QByteArray::qCompress_data() { QTest::addColumn<QByteArray>("ba"); @@ -261,7 +262,6 @@ void tst_QByteArray::qCompress_data() QTest::newRow( "04" ) << file.readAll(); } -#ifndef QT_NO_COMPRESS void tst_QByteArray::qCompress() { QFETCH( QByteArray, ba ); |