Skip to content

Commit

Permalink
tests: cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
timblechmann committed Nov 3, 2023
1 parent 8b25ed2 commit bafa33b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ set(Tests

foreach(Test ${Tests})
# Test target
add_executable(boost_lockfree_${Test} ${Test}.cpp )
add_executable(boost_lockfree_${Test} ${Test}.cpp test_common.hpp test_helpers.hpp )
source_group( TREE "${CMAKE_CURRENT_SOURCE_DIR}" FILES ${Test}.cpp test_common.hpp test_helpers.hpp)

target_include_directories(boost_lockfree_${Test} PRIVATE . )
target_link_libraries(boost_lockfree_${Test} PRIVATE
Boost::lockfree
Expand Down
1 change: 1 addition & 0 deletions test/test_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <iostream>

#include <boost/array.hpp>
#include <boost/test/test_tools.hpp>
#include <boost/thread.hpp>

namespace impl {
Expand Down
3 changes: 2 additions & 1 deletion test/test_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
#define BOOST_LOCKFREE_TEST_HELPERS

#include <boost/array.hpp>
#include <boost/cstdint.hpp>
#include <boost/lockfree/detail/atomic.hpp>
#include <boost/test/test_tools.hpp>
#include <boost/thread.hpp>
#include <set>

#include <boost/cstdint.hpp>

template < typename int_type >
int_type generate_id( void )
Expand Down

0 comments on commit bafa33b

Please sign in to comment.