Changeset View
Changeset View
Standalone View
Standalone View
src/test/main.cpp
- This file was moved from src/test/test_bitcoin_main.cpp.
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#define BOOST_TEST_MODULE Bitcoin ABC unit tests | #define BOOST_TEST_MODULE Bitcoin ABC unit tests | ||||
#include <banman.h> | |||||
#include <net.h> | |||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <memory> | |||||
std::unique_ptr<CConnman> g_connman; | |||||
std::unique_ptr<BanMan> g_banman; | |||||
[[noreturn]] void Shutdown(void *parg) { | |||||
std::exit(EXIT_SUCCESS); | |||||
} | |||||
[[noreturn]] void StartShutdown() { | |||||
std::exit(EXIT_SUCCESS); | |||||
} | |||||
bool ShutdownRequested() { | |||||
return false; | |||||
} | |||||
namespace utf = boost::unit_test::framework; | namespace utf = boost::unit_test::framework; | ||||
/* | /* | ||||
* Global fixture for passing custom arguments, and clearing them all after each | * Global fixture for passing custom arguments, and clearing them all after each | ||||
* test case. | * test case. | ||||
*/ | */ | ||||
struct CustomArgumentsFixture { | struct CustomArgumentsFixture { | ||||
std::string error; | std::string error; | ||||
Show All 27 Lines |