Skip to content

Commit

Permalink
Improve task arena test coverage (#725)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexei Katranov <[email protected]>
  • Loading branch information
alexey-katranov committed Jan 13, 2022
1 parent 3db67b5 commit 1eaccf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/conformance/conformance_task_arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ TEST_CASE("Arena interfaces") {
//! Attach interface
oneapi::tbb::task_arena attached_arena{oneapi::tbb::task_arena::attach()};
CHECK(attached_arena.is_active());
oneapi::tbb::task_arena attached_arena2{oneapi::tbb::attach()};
CHECK(attached_arena2.is_active());
});
while (!done) {
utils::yield();
Expand Down
5 changes: 5 additions & 0 deletions test/tbb/test_task_arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,11 @@ struct TestAttachBody : utils::NoAssign {
tbb::task_arena arena2{tbb::task_arena::attach()};
ValidateAttachedArena( arena2, true, default_threads, 1 );

tbb::task_arena arena3;
arena3.initialize(tbb::attach());
ValidateAttachedArena( arena3, true, default_threads, 1 );


// attach to another task_arena
arena.initialize( maxthread, std::min(maxthread,idx) );
arena.execute( *this );
Expand Down

0 comments on commit 1eaccf7

Please sign in to comment.