From d7c80ae3c76f2dd2e2ce3a39602fa7f04776d9c2 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 4 Sep 2026 20:11:09 +0000 Subject: Use the same memory-failure mechanism for mallocs FossilOrigin-Name: fc4f944f1ef599321fac8aa6af72bbe55fb438b4f43800ba37dcfdfa2e6b4c4e --- CMakeLists.txt | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9631df4..3466f60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,6 @@ add_custom_command( add_executable(aplwc-repl src/bin/main.c src/bin/util.c - src/bin/wrappers.c ) target_link_libraries(aplwc-repl PRIVATE common aplwc) @@ -150,17 +149,3 @@ foreach(script ${TEST_SCRIPTS_BAD}) endforeach() add_test(NAME "aplwc-repl" COMMAND "aplwc-repl" "-x") - -set(REQUIRED_MALLOCS 3) -foreach(i RANGE 0 ${REQUIRED_MALLOCS}) - set(name "aplwc-repl-${i}-${REQUIRED_MALLOCS}") - add_test(NAME "${name}" COMMAND "aplwc-repl" "-x") - set_tests_properties("${name}" PROPERTIES - ENVIRONMENT "APLWC_MALLOC_FAIL_AFTER=${i}" - ) - if(NOT i EQUAL ${REQUIRED_MALLOCS} AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") - set_tests_properties("${name}" PROPERTIES - WILL_FAIL TRUE - ) - endif() -endforeach() -- cgit v1.2.3