From e2d54f5187495ef72df3a031c1c2d75ee25567cb Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 4 Jan 2025 09:58:15 -0800 Subject: cmake: remove unused compat test macro --- tests/CMakeLists.txt | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index abff68c0..4dcfb1ad 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright 2024 Staysail Systems, Inc. +# Copyright 2025 Staysail Systems, Inc. # Copyright 2018 Capitar IT Group BV # Copyright (c) 2012 Martin Sustrik All rights reserved. # Copyright (c) 2013 GoPivotal, Inc. All rights reserved. @@ -60,20 +60,6 @@ if (NNG_TESTS) math(EXPR NNG_TEST_PORT "${NNG_TEST_PORT}+20") endmacro(add_nng_test) - # Compatibility tests are only added if all of the legacy protocols - # are present. It's not worth trying to figure out which of these - # should work and which shouldn't. - macro(add_nng_compat_test NAME TIMEOUT) - add_executable(${NAME} ${NAME}.c compat_testutil.c) - target_link_libraries(${NAME} nng_testing) - target_include_directories(${NAME} PRIVATE - ${PROJECT_SOURCE_DIR}/src/compat - ${PROJECT_SOURCE_DIR}/include) - add_test(NAME nng.${NAME} COMMAND ${NAME} ${NNG_TEST_PORT}) - set_tests_properties(nng.${NAME} PROPERTIES TIMEOUT ${TIMEOUT}) - math(EXPR NNG_TEST_PORT "${NNG_TEST_PORT}+20") - endmacro(add_nng_compat_test) - macro(add_nng_cpp_test NAME TIMEOUT) if (NOT NNG_ENABLE_COVERAGE) enable_language(CXX) -- cgit v1.2.3-70-g09d2