pw_unit_test: Changed static assert message to include config.h
Change-Id: Ic1ae93a875ac05b53935c3876343cd4b2071614f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112150
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Brian Barcenas <bbarcenas@google.com>
diff --git a/pw_unit_test/public/pw_unit_test/internal/framework.h b/pw_unit_test/public/pw_unit_test/internal/framework.h
index 237ea87..73af392 100644
--- a/pw_unit_test/public/pw_unit_test/internal/framework.h
+++ b/pw_unit_test/public/pw_unit_test/internal/framework.h
@@ -237,12 +237,11 @@
// this method instantiated for its test class.
template <typename TestInstance>
static void CreateAndRunTest(const TestInfo& test_info) {
- // TODO(frolv): Update the assert message with the name of the config option
- // for memory pool size once it is configurable.
static_assert(
sizeof(TestInstance) <= sizeof(memory_pool_),
"The test memory pool is too small for this test. Either increase "
- "kTestMemoryPoolSizeBytes or decrease the size of your test fixture.");
+ "PW_UNIT_TEST_CONFIG_MEMORY_POOL_SIZE or decrease the size of your "
+ "test fixture.");
Framework& framework = Get();
framework.StartTest(test_info);