From 66ef92de0e7cf40c712809848006c256f5e372e4 Mon Sep 17 00:00:00 2001 From: MoustaphaSaad Date: Fri, 31 May 2024 18:31:22 +0300 Subject: disable arc4randomforktest because Emscripten lacks fork support --- tests/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index cd00514..5788805 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -62,7 +62,8 @@ add_platform_test(apitest apitest) # arc4randomforktest # Windows/mingw does not have fork, but Cygwin does. -if(NOT (WIN32 OR (CMAKE_SYSTEM_NAME MATCHES "MINGW"))) +# Emscripten does not have fork. +if(NOT (WIN32 OR (CMAKE_SYSTEM_NAME MATCHES "MINGW") OR EMSCRIPTEN)) add_executable(arc4randomforktest arc4randomforktest.c) target_link_libraries(arc4randomforktest ${OPENSSL_TEST_LIBS}) add_test(arc4randomforktest ${CMAKE_CURRENT_SOURCE_DIR}/arc4randomforktest.sh) -- cgit v1.2.3-55-g6feb