Skip to content

Commit

Permalink
Merge pull request #431 from stanislaw/osal-loader
Browse files Browse the repository at this point in the history
unit-tests/osloader-test: make modules always be built for the test
  • Loading branch information
astrogeco committed Apr 28, 2020
2 parents 3707b78 + e2a8edf commit 230ba68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unit-tests/osloader-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ set(TEST_MODULE_FILES
ut_osloader_module_test.c
ut_osloader_symtable_test.c
ut_osloader_test.c)


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.
Expand All @@ -16,7 +18,5 @@ while(MOD GREATER 0)
COMPILE_DEFINITIONS "MODULE_NAME=module${MOD}"
PREFIX ""
LIBRARY_OUTPUT_DIRECTORY eeprom1)
add_dependencies(osal_loader_UT MODULE${MOD})
endwhile(MOD GREATER 0)

add_osal_ut_exe(osal_loader_UT ${TEST_MODULE_FILES})

0 comments on commit 230ba68

Please sign in to comment.