From 0f5454d017eec45f4da9ba515e8afe8406fd4bcf Mon Sep 17 00:00:00 2001 From: Jake Hageman Date: Wed, 15 Sep 2021 16:56:29 -0400 Subject: [PATCH] Fix #1148, MIR symbol name too long in symbol-api-test --- src/tests/symbol-api-test/symbol-api-test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tests/symbol-api-test/symbol-api-test.c b/src/tests/symbol-api-test/symbol-api-test.c index 9546824e3..e762dd946 100644 --- a/src/tests/symbol-api-test/symbol-api-test.c +++ b/src/tests/symbol-api-test/symbol-api-test.c @@ -55,6 +55,10 @@ void TestSymbolApi(void) { UtAssert_MIR("32k too small for OS_SymbolTableDump"); } + else if (status == OS_ERR_NAME_TOO_LONG) + { + UtAssert_MIR("OS_SymbolTableDump name to long, consider increasing OSAL_CONFIG_MAX_SYM_LEN"); + } else { UtAssert_True(status == OS_SUCCESS, "status after 32k OS_SymbolTableDump = %d", (int)status); @@ -73,6 +77,10 @@ void TestSymbolApi(void) { UtAssert_MIR("128k too small for OS_SymbolTableDump"); } + else if (status == OS_ERR_NAME_TOO_LONG) + { + UtAssert_MIR("OS_SymbolTableDump name to long, consider increasing OSAL_CONFIG_MAX_SYM_LEN"); + } else { UtAssert_True(status == OS_SUCCESS, "status after 128k OS_SymbolTableDump = %d", (int)status); @@ -91,6 +99,10 @@ void TestSymbolApi(void) { UtAssert_MIR("512k too small for OS_SymbolTableDump"); } + else if (status == OS_ERR_NAME_TOO_LONG) + { + UtAssert_MIR("OS_SymbolTableDump name to long, consider increasing OSAL_CONFIG_MAX_SYM_LEN"); + } else { UtAssert_True(status == OS_SUCCESS, "status after 512k OS_SymbolTableDump = %d", (int)status);