summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-04 12:03:35 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-04 12:03:35 +0200
commite75adb16d19b36c45ebd6911f6dbd810d564f803 (patch)
tree885b482f45d8a96280ae58842f9cb11253918d23
parent065d467ff61887b6d65e946801fb2665e6a44610 (diff)
downloadsocket_wrapper-e75adb16d19b36c45ebd6911f6dbd810d564f803.tar.gz
socket_wrapper-e75adb16d19b36c45ebd6911f6dbd810d564f803.tar.xz
socket_wrapper-e75adb16d19b36c45ebd6911f6dbd810d564f803.zip
tests: Get the testsuite working with 'make test'.
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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)