cpukit/sapi/src/interrtext.c: Add missing definition

This adds a missing text description for an internal error and updates
the spinternalerror02 test to check for the correct end of internal
error definitions.
This commit is contained in:
Kinsey Moore
2025-12-26 12:02:50 -06:00
committed by Gedare Bloom
parent dcab8a9eac
commit 5efed52222
2 changed files with 2 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ static const char *const internal_error_text[] = {
"INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED",
"INTERNAL_ERROR_NO_MEMORY_FOR_IDLE_TASK_STORAGE",
"INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL",
"INTERNAL_ERROR_CANNOT_DISABLE_DATA_CACHE",
"INTERNAL_ERROR_LIBIO_STDIN_FD_OPEN_FAILED"
};

View File

@@ -49,7 +49,7 @@ static void test_internal_error_text(void)
} while ( text != text_last );
rtems_test_assert(
error - 3 == INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL
error - 3 == INTERNAL_ERROR_LIBIO_STDIN_FD_OPEN_FAILED
);
}