Files
lockfree/test/stack_fixedsize_stress_test.cpp
2024-05-03 21:45:54 +08:00

27 lines
690 B
C++

// Copyright (C) 2011 Tim Blechmann
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/lockfree/stack.hpp>
#define BOOST_TEST_MAIN
#ifdef BOOST_LOCKFREE_INCLUDE_TESTS
# include <boost/test/included/unit_test.hpp>
#else
# include <boost/test/unit_test.hpp>
#endif
#include "test_common.hpp"
BOOST_AUTO_TEST_CASE( stack_test_fixed_size )
{
typedef queue_stress_tester<> tester_type;
std::unique_ptr< tester_type > tester( new tester_type( 4, 4 ) );
boost::lockfree::stack< long, boost::lockfree::capacity< 8 > > q;
tester->run( q );
}