Disable unsupported doctest tests on Windows (#3135)
Disable 02.API-REFERENCE-create-context.c, because it is based on pthread, and there is no pthread on Windows. Disable 11.EXT-REFERENCE-AUTORELEASE.c and test-ext-autorelease.c if compiler is MSVC, because MSVC doesn't support cleanup attribute. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
committed by
Dániel Bátyai
parent
6c03e0f0af
commit
1acbf83d1a
@@ -54,6 +54,16 @@ foreach(DOCTEST_ELEMENT IN LISTS DOCTEST_LIST)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Disable 02.API-REFERENCE-create-context.c on Windows, because there is no pthread on it.
|
||||
if("${PLATFORM}" STREQUAL "WINDOWS")
|
||||
list(REMOVE_ITEM DOCTEST_COMPILE ${CMAKE_CURRENT_BINARY_DIR}/02.API-REFERENCE-create-context.c)
|
||||
endif()
|
||||
|
||||
# Disable 11.EXT-REFERENCE-AUTORELEASE.c if compiler is MSVC, because MSVC doesn't support cleanup attribute.
|
||||
if(USING_MSVC)
|
||||
list(REMOVE_ITEM DOCTEST_COMPILE ${CMAKE_CURRENT_BINARY_DIR}/11.EXT-REFERENCE-AUTORELEASE.c)
|
||||
endif()
|
||||
|
||||
# Add custom command to run doctest generator if any of the MarkDown sources
|
||||
# changes.
|
||||
add_custom_command(
|
||||
|
||||
Reference in New Issue
Block a user