VariantPoolList: handle SlotId overflow

This commit is contained in:
Benoit Blanchon
2023-07-20 19:04:40 +02:00
parent 8be0d57d24
commit f427706e06
3 changed files with 41 additions and 1 deletions

View File

@@ -10,6 +10,11 @@ add_executable(ResourceManagerTests
StringBuilder.cpp
)
add_compile_definitions(ResourceManagerTests
ARDUINOJSON_SLOT_ID_SIZE=1 # require less RAM for overflow tests
ARDUINOJSON_POOL_CAPACITY=16
)
add_test(ResourceManager ResourceManagerTests)
set_tests_properties(ResourceManager