diff options
-rw-r--r-- | tests/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 12d4308..8755bf8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -674,7 +674,8 @@ endif() | |||
674 | set_tests_properties(shutdowntest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") | 674 | set_tests_properties(shutdowntest PROPERTIES ENVIRONMENT "srcdir=${TEST_SOURCE_DIR}") |
675 | 675 | ||
676 | # signertest | 676 | # signertest |
677 | if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") | 677 | # Emscripten does not support socketpair syscall. |
678 | if(NOT (CMAKE_SYSTEM_NAME MATCHES "WindowsStore" OR EMSCRIPTEN)) | ||
678 | set(SIGNERTEST_SRC signertest.c) | 679 | set(SIGNERTEST_SRC signertest.c) |
679 | check_function_exists(pipe2 HAVE_PIPE2) | 680 | check_function_exists(pipe2 HAVE_PIPE2) |
680 | if(HAVE_PIPE2) | 681 | if(HAVE_PIPE2) |
@@ -710,6 +711,9 @@ add_executable(ssl_get_shared_ciphers ssl_get_shared_ciphers.c) | |||
710 | set_source_files_properties(ssl_get_shared_ciphers.c PROPERTIES COMPILE_FLAGS | 711 | set_source_files_properties(ssl_get_shared_ciphers.c PROPERTIES COMPILE_FLAGS |
711 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") | 712 | -DCERTSDIR=\\"${CMAKE_CURRENT_SOURCE_DIR}\\") |
712 | target_link_libraries(ssl_get_shared_ciphers ${OPENSSL_TEST_LIBS}) | 713 | target_link_libraries(ssl_get_shared_ciphers ${OPENSSL_TEST_LIBS}) |
714 | if(EMSCRIPTEN) | ||
715 | set_target_properties(ssl_get_shared_ciphers PROPERTIES LINK_FLAGS "--preload-file ${TEST_SOURCE_DIR}") | ||
716 | endif() | ||
713 | add_platform_test(ssl_get_shared_ciphers ssl_get_shared_ciphers) | 717 | add_platform_test(ssl_get_shared_ciphers ssl_get_shared_ciphers) |
714 | 718 | ||
715 | # ssl_methods | 719 | # ssl_methods |