diff options
author | MoustaphaSaad <moustapha.saad.abdelhamed@gmail.com> | 2024-05-31 18:45:50 +0300 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2024-06-19 14:06:09 +0200 |
commit | 3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243 (patch) | |
tree | ba32995f84fb9d230fefb61dd3fbdaba73e38e73 /tests | |
parent | 50b726ce3798345511a8a06129f7aab1d7d9a567 (diff) | |
download | portable-3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243.tar.gz portable-3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243.tar.bz2 portable-3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243.zip |
fix bn_unit
bn_unit uses more memory than Emscripten default initial heap size.
ALLOW_MEMORY_GROWTH linker option is passed to fix the OOM error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5c7edba..f52a17b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -252,6 +252,7 @@ add_platform_test(bn_to_string bn_to_string) | |||
252 | # bn_unit | 252 | # bn_unit |
253 | add_executable(bn_unit bn_unit.c) | 253 | add_executable(bn_unit bn_unit.c) |
254 | target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) | 254 | target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) |
255 | set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH") | ||
255 | add_platform_test(bn_unit bn_unit) | 256 | add_platform_test(bn_unit bn_unit) |
256 | 257 | ||
257 | # bn_word | 258 | # bn_word |