diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-07 08:50:10 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-07 08:50:10 +0200 |
commit | 98351dc6e48dabc02a941872b0aad7f795e665bd (patch) | |
tree | aaa37853fca9437759dd2312debfed585700a608 /unit_tests | |
parent | 5e29202b78d4932db079b21f0324ea57d8902bda (diff) | |
download | lanes-98351dc6e48dabc02a941872b0aad7f795e665bd.tar.gz lanes-98351dc6e48dabc02a941872b0aad7f795e665bd.tar.bz2 lanes-98351dc6e48dabc02a941872b0aad7f795e665bd.zip |
Fix crash with multi keepers (invalid memory access on close)
Diffstat (limited to 'unit_tests')
-rw-r--r-- | unit_tests/init_and_shutdown.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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") | |||
323 | 323 | ||
324 | // ----------------------------------------------------------------------------------------- | 324 | // ----------------------------------------------------------------------------------------- |
325 | 325 | ||
326 | SECTION("nb_user_keepers = 1") | ||
327 | { | ||
328 | L.requireSuccess("require 'lanes'.configure{nb_user_keepers = 1}"); | ||
329 | } | ||
330 | |||
331 | // ----------------------------------------------------------------------------------------- | ||
332 | |||
326 | SECTION("nb_user_keepers = 100") | 333 | SECTION("nb_user_keepers = 100") |
327 | { | 334 | { |
328 | L.requireSuccess("require 'lanes'.configure{nb_user_keepers = 100}"); | 335 | L.requireSuccess("require 'lanes'.configure{nb_user_keepers = 100}"); |