From 98351dc6e48dabc02a941872b0aad7f795e665bd Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 7 Apr 2025 08:50:10 +0200 Subject: Fix crash with multi keepers (invalid memory access on close) --- unit_tests/init_and_shutdown.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'unit_tests') diff --git a/unit_tests/init_and_shutdown.cpp b/unit_tests/init_and_shutdown.cpp index 53f4a2a..384af43 100644 --- a/unit_tests/init_and_shutdown.cpp +++ b/unit_tests/init_and_shutdown.cpp @@ -323,6 +323,13 @@ TEST_CASE("lanes.configure.nb_user_keepers") // ----------------------------------------------------------------------------------------- + SECTION("nb_user_keepers = 1") + { + L.requireSuccess("require 'lanes'.configure{nb_user_keepers = 1}"); + } + + // ----------------------------------------------------------------------------------------- + SECTION("nb_user_keepers = 100") { L.requireSuccess("require 'lanes'.configure{nb_user_keepers = 100}"); -- cgit v1.2.3-55-g6feb