Skip to content

Commit

Permalink
fixed jamfile for boost.test.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Oct 19, 2023
1 parent a0ca8a4 commit 92d4a29
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
13 changes: 10 additions & 3 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
deps = [
'libs/array',
'libs/align',
'libs/algorithm',
'libs/asio',
'libs/assert',
'libs/beast',
Expand All @@ -19,25 +20,31 @@ deps = [
'libs/container',
'libs/core',
'libs/date_time',
'libs/detail',
'libs/exception',
'libs/function',
'libs/headers',
'libs/integer',
'libs/intrusive',
'libs/io',
'libs/iterator',
'libs/leaf',
'libs/mpl',
'libs/move',
'libs/mp11',
'libs/numeric',
'libs/optional',
'libs/predef',
'libs/preprocessor',
'libs/ratio',
'libs/system',
'libs/static_assert',
'libs/smart_ptr',
'libs/static_assert',
'libs/system',
'libs/test',
'libs/thread',
'libs/throw_exception',
'libs/utility',
'libs/type_traits',
'libs/utility',
'libs/variant2',
'libs/winapi',
'tools/build',
Expand Down
4 changes: 2 additions & 2 deletions test/Jamfile.jam
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ lib test_impl : test_main.cpp /boost//cobalt :
;

run main.cpp /boost//cobalt ;
run main_compile.cpp /boost//cobalt ;
run main_compile.cpp /boost//cobalt util.cpp concepts.cpp ;

for local src in [ glob *.cpp : main.cpp main_compile.cpp ]
for local src in [ glob *.cpp : main.cpp main_compile.cpp test_main.cpp concepts.cpp ]
{
run $(src) test_impl ;
}
Expand Down
7 changes: 4 additions & 3 deletions test/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ CO_TEST_CASE(spawn_onto_thread)
auto t = thr();

auto id = co_await cobalt::spawn(t.get_executor(), on_thread(), cobalt::use_op);

auto id2 = t.get_id();

auto id3 = std::this_thread::get_id();

BOOST_CHECK(id == id2);
BOOST_CHECK(id3 != id);
t.join();

if (t.joinable())
t.join();
}


Expand Down

0 comments on commit 92d4a29

Please sign in to comment.