From e75adb16d19b36c45ebd6911f6dbd810d564f803 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 4 Jun 2013 12:03:35 +0200 Subject: tests: Get the testsuite working with 'make test'. --- tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a93f450..545e2aa 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -7,3 +7,7 @@ include_directories( ) add_cmocka_test(testsuite testsuite.c ${CMOCKA_LIBRARY}) +set_tests_properties( + testsuite + PROPERTIES + ENVIRONMENT LD_PRELOAD=${CMAKE_BINARY_DIR}/src/libsocket_wrapper.so) -- cgit