From 037d19a3282a2ae090d127297708f69b2876f98f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 28 Sep 2018 15:53:40 +0100 Subject: Convert spawn test into a standalone test executable This test is sufficiently well-separated that there's no real need to embed it in libdbus. Move it into the test directory instead. Signed-off-by: Simon McVittie --- cmake/dbus/CMakeLists.txt | 1 - cmake/test/CMakeLists.txt | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/dbus/CMakeLists.txt b/cmake/dbus/CMakeLists.txt index 77b6c10a..d25cc961 100644 --- a/cmake/dbus/CMakeLists.txt +++ b/cmake/dbus/CMakeLists.txt @@ -171,7 +171,6 @@ set (DBUS_UTIL_SOURCES if (DBUS_ENABLE_EMBEDDED_TESTS) set (DBUS_UTIL_SOURCES ${DBUS_UTIL_SOURCES} - ${DBUS_DIR}/dbus-spawn-test.c ${DBUS_DIR}/dbus-test-wrappers.c ) endif (DBUS_ENABLE_EMBEDDED_TESTS) diff --git a/cmake/test/CMakeLists.txt b/cmake/test/CMakeLists.txt index b505cc61..8d18119c 100644 --- a/cmake/test/CMakeLists.txt +++ b/cmake/test/CMakeLists.txt @@ -77,6 +77,9 @@ add_test_executable(test-printf ${TEST_DIR}/internals/printf.c dbus-testutils) add_helper_executable(test-privserver ${TEST_DIR}/test-privserver.c dbus-testutils) add_helper_executable(test-shell-service ${test-shell-service_SOURCES} dbus-testutils) add_helper_executable(test-spawn ${test-spawn_SOURCES} ${DBUS_INTERNAL_LIBRARIES}) +if(NOT WINCE) + add_test_executable(test-spawn-oom ${TEST_DIR}/internals/spawn-oom.c ${DBUS_INTERNAL_LIBRARIES}) +endif() add_helper_executable(test-exit ${test-exit_SOURCES} ${DBUS_INTERNAL_LIBRARIES}) # the second argument of add_helper_executable() is a whitespace-separated # list of source files and the third and subsequent arguments are libraries -- cgit v1.2.1