diff options
Diffstat (limited to 'src/test/test_bitcoin_main.cpp')
-rw-r--r-- | src/test/test_bitcoin_main.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/test_bitcoin_main.cpp b/src/test/test_bitcoin_main.cpp new file mode 100644 index 0000000000..b556c953b9 --- /dev/null +++ b/src/test/test_bitcoin_main.cpp @@ -0,0 +1,26 @@ +// Copyright (c) 2011-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. + +#define BOOST_TEST_MODULE Bitcoin Test Suite + +#include "net.h" + +#include <boost/test/unit_test.hpp> + +std::unique_ptr<CConnman> g_connman; + +[[noreturn]] void Shutdown(void* parg) +{ + std::exit(EXIT_SUCCESS); +} + +[[noreturn]] void StartShutdown() +{ + std::exit(EXIT_SUCCESS); +} + +bool ShutdownRequested() +{ + return false; +} |