aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoustaphaSaad <moustapha.saad.abdelhamed@gmail.com>2024-05-31 18:45:50 +0300
committerTheo Buehler <tb@openbsd.org>2024-06-19 14:06:09 +0200
commit3d9c9cf5b0f7867fdcc04ca928e15b44c3ccb243 (patch)
treeba32995f84fb9d230fefb61dd3fbdaba73e38e73
parent50b726ce3798345511a8a06129f7aab1d7d9a567 (diff)
downloadportable-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
-rw-r--r--tests/CMakeLists.txt1
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
253add_executable(bn_unit bn_unit.c) 253add_executable(bn_unit bn_unit.c)
254target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS}) 254target_link_libraries(bn_unit ${OPENSSL_TEST_LIBS})
255set_target_properties(bn_unit PROPERTIES LINK_FLAGS "-sALLOW_MEMORY_GROWTH")
255add_platform_test(bn_unit bn_unit) 256add_platform_test(bn_unit bn_unit)
256 257
257# bn_word 258# bn_word