Skip to content

Commit

Permalink
Fix nasa#1148, MIR symbol name too long in symbol-api-test
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Sep 15, 2021
1 parent 0531bca commit 0f5454d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tests/symbol-api-test/symbol-api-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 0f5454d

Please sign in to comment.