#include "c_Test.h" #include "c_HardwareConcurrency.h" TEST_CASE(test_hardware_concurrency_detection) { c_size_t cores = c_HardwareConcurrency(); /* Log numerical results using your system's architectural type-spec macro format */ printf(" " COLOR_CYAN "[INFO] Detected System Hardware Concurrency: %" C_PRId " logical core(s)" COLOR_RESET "\n", (uint64_t)cores); /* * Invariants verification: * Even on old or highly constrained embedded hardware setups, * the system must feature at least 1 logical core running the test loop thread. */ ASSERT_TRUE(cores >= 1); } int main(void) { TEST_START(HardwareConcurrency_Detection_Suite); RUN_TEST(test_hardware_concurrency_detection); TEST_REPORT(); RETURN_TEST_STATUS; }