Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1150, Set OSAL Loader unit test number of modules to OSAL_CONFIG_MAX_MODULES. #1265

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/unit-tests/osloader-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ add_osal_ut_exe(osal_loader_UT ${TEST_MODULE_FILES})

# build many copies of the test module
# we need to have unique modules to load up to OS_MAX_MODULES
# This will cover up to 32 -- extras are ignored. If needed this can be increased.
set(MOD 32)
# This will cover up to $OSAL_CONFIG_MAX_MODULES + 1. If needed
# this can be increased by increasing $OSAL_CONFIG_MAX_MODULES.
math(EXPR MOD "${OSAL_CONFIG_MAX_MODULES} + 1")
while(MOD GREATER 0)
math(EXPR MOD "${MOD} - 1")
add_library(MODULE${MOD} SHARED ut_module.c)
Expand Down