From d47d4c23dcc3604ca7445a059ebbd9199bc77d97 Mon Sep 17 00:00:00 2001 From: andrej Date: Wed, 3 Aug 2022 12:24:00 +0200 Subject: [PATCH] unit-tests: add linker wrapper flags --- tests/Tests.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/Tests.cmake b/tests/Tests.cmake index fc3f650..1614995 100644 --- a/tests/Tests.cmake +++ b/tests/Tests.cmake @@ -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) \ No newline at end of file +add_test(NAME system_utest COMMAND system_utest)