test: remove qt byteswap compattests
These were added as part of #9366 to fix issues with Protobuf. Now that we no-longer use Protobuf, there's no reason to maintain a duplicate set of byteswap tests for qt.
This commit is contained in:
6 files changed
-56
No files matched your search
@@ -1,25 +0,0 @@
|
||||
// Copyright (c) 2016-2019 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#if defined(HAVE_CONFIG_H)
|
||||
#include <config/bitcoin-config.h>
|
||||
#endif
|
||||
|
||||
#include <qt/test/compattests.h>
|
||||
|
||||
#include <compat/byteswap.h>
|
||||
|
||||
void CompatTests::bswapTests()
|
||||
{
|
||||
// Sibling in bitcoin/src/test/bswap_tests.cpp
|
||||
uint16_t u1 = 0x1234;
|
||||
uint32_t u2 = 0x56789abc;
|
||||
uint64_t u3 = 0xdef0123456789abc;
|
||||
uint16_t e1 = 0x3412;
|
||||
uint32_t e2 = 0xbc9a7856;
|
||||
uint64_t e3 = 0xbc9a78563412f0de;
|
||||
QVERIFY(bswap_16(u1) == e1);
|
||||
QVERIFY(bswap_32(u2) == e2);
|
||||
QVERIFY(bswap_64(u3) == e3);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
// Copyright (c) 2009-2016 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef BITCOIN_QT_TEST_COMPATTESTS_H
|
||||
#define BITCOIN_QT_TEST_COMPATTESTS_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QTest>
|
||||
|
||||
class CompatTests : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private Q_SLOTS:
|
||||
void bswapTests();
|
||||
};
|
||||
|
||||
#endif // BITCOIN_QT_TEST_COMPATTESTS_H
|
||||
@@ -11,7 +11,6 @@
|
||||
#include <qt/test/apptests.h>
|
||||
#include <qt/test/rpcnestedtests.h>
|
||||
#include <qt/test/uritests.h>
|
||||
#include <qt/test/compattests.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
@@ -92,10 +91,6 @@ int main(int argc, char* argv[])
|
||||
if (QTest::qExec(&test3) != 0) {
|
||||
fInvalid = true;
|
||||
}
|
||||
CompatTests test4;
|
||||
if (QTest::qExec(&test4) != 0) {
|
||||
fInvalid = true;
|
||||
}
|
||||
#ifdef ENABLE_WALLET
|
||||
WalletTests test5(app.node());
|
||||
if (QTest::qExec(&test5) != 0) {
|
||||
|
||||
Reference in new issue
Block a user