Changeset View
Changeset View
Standalone View
Standalone View
src/test/reverselock_tests.cpp
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-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. | ||||
#include <reverselock.h> | #include <reverselock.h> | ||||
#include <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(reverselock_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(reverselock_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(reverselock_basics) { | BOOST_AUTO_TEST_CASE(reverselock_basics) { | ||||
boost::mutex mutex; | boost::mutex mutex; | ||||
boost::unique_lock<boost::mutex> lock(mutex); | boost::unique_lock<boost::mutex> lock(mutex); | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |