Skip to content

Commit 230ba68

Browse files
authored
Merge pull request #431 from stanislaw/osal-loader
unit-tests/osloader-test: make modules always be built for the test
2 parents 3707b78 + e2a8edf commit 230ba68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unit-tests/osloader-test/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ set(TEST_MODULE_FILES
44
ut_osloader_module_test.c
55
ut_osloader_symtable_test.c
66
ut_osloader_test.c)
7-
7+
8+
add_osal_ut_exe(osal_loader_UT ${TEST_MODULE_FILES})
9+
810
# build many copies of the test module
911
# we need to have unique modules to load up to OS_MAX_MODULES
1012
# This will cover up to 32 -- extras are ignored. If needed this can be increased.
@@ -16,7 +18,5 @@ while(MOD GREATER 0)
1618
COMPILE_DEFINITIONS "MODULE_NAME=module${MOD}"
1719
PREFIX ""
1820
LIBRARY_OUTPUT_DIRECTORY eeprom1)
21+
add_dependencies(osal_loader_UT MODULE${MOD})
1922
endwhile(MOD GREATER 0)
20-
21-
add_osal_ut_exe(osal_loader_UT ${TEST_MODULE_FILES})
22-

0 commit comments

Comments
 (0)