Skip to content

Commit

Permalink
unit-tests: add linker wrapper flags
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Aug 3, 2022
1 parent 0188c2f commit d47d4c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ target_link_libraries(

"-Wl,--wrap=gethostname"
"-Wl,--wrap=sethostname"
"-Wl,--wrap=unlink"
"-Wl,--wrap=symlink"
"-Wl,--wrap=sr_apply_changes"
"-Wl,--wrap=sd_bus_open_system"
"-lsystemd"
)

add_test(NAME system_utest COMMAND system_utest)
add_test(NAME system_utest COMMAND system_utest)

0 comments on commit d47d4c2

Please sign in to comment.