diff options
| author | peter <peter@pmikkelsen.com> | 2026-09-04 20:11:09 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-09-04 20:11:09 +0000 |
| commit | d7c80ae3c76f2dd2e2ce3a39602fa7f04776d9c2 (patch) | |
| tree | fd37dc587f786c22cf69ace481fd8271a4c69449 /CMakeLists.txt | |
| parent | fa72ab029ddfcd050f79824bdbea95f77d8f1f60 (diff) | |
Use the same memory-failure mechanism for mallocs
FossilOrigin-Name: fc4f944f1ef599321fac8aa6af72bbe55fb438b4f43800ba37dcfdfa2e6b4c4e
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 0 insertions, 15 deletions
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() |