Skip to content

Commit

Permalink
tests/thread_pool: remove extraneous test
Browse files Browse the repository at this point in the history
b569208 removed "fast" and "slow" accessors of the current thread ID,
instead exposing just a single (library; that is, sentry-mediated) call
into the switcher.
  • Loading branch information
nwf committed Jan 21, 2025
1 parent 6bbbedc commit 52a1ba4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/thread_pool-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,8 @@ int test_thread_pool()
free(heapInt);

async([]() {
auto fast = thread_id_get();
auto slow = thread_id_get();
TEST(fast == slow,
"Thread ID is different in fast ({}) and slow ({}) accessors",
fast,
slow);
TEST(fast != 1, "Thread ID for thread pool thread should not be 1");
TEST(thread_id_get() != 1,
"Thread ID for thread pool thread should not be 1");
});

CHERI::Capability<void> mainThread{switcher_current_thread()};
Expand Down

0 comments on commit 52a1ba4

Please sign in to comment.