From 2d48c70f2f76d90e2e3e6c1badec7a4f0e6c623b Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 5 Feb 2023 00:44:03 +0100 Subject: Test number of threads --- tests/test-whiteboard.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-whiteboard.cpp b/tests/test-whiteboard.cpp index c55c87c..e1df17a 100644 --- a/tests/test-whiteboard.cpp +++ b/tests/test-whiteboard.cpp @@ -194,3 +194,9 @@ TEST_F(WhiteboardTest, websocket_server_generate_id) ASSERT_NE(result0, result1); } +// check number of threads as configured +TEST_F(WhiteboardTest, threads) +{ + ASSERT_GE(Process::number_of_threads(m_pid), 4); +} + -- cgit v1.2.3