From 52a1ba418013e1dbe55addf7b7fcf66e96bb4347 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Wed, 15 Jan 2025 23:04:43 +0000 Subject: [PATCH] tests/thread_pool: remove extraneous test b5692081e removed "fast" and "slow" accessors of the current thread ID, instead exposing just a single (library; that is, sentry-mediated) call into the switcher. --- tests/thread_pool-test.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/thread_pool-test.cc b/tests/thread_pool-test.cc index 00377b38..9aaf8612 100644 --- a/tests/thread_pool-test.cc +++ b/tests/thread_pool-test.cc @@ -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 mainThread{switcher_current_thread()};