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:
Csaba Osztrogonác
2019-09-20 11:07:06 +02:00
committed by Dániel Bátyai
parent 6c03e0f0af
commit 1acbf83d1a
4 changed files with 17 additions and 2 deletions
+5
View File
@@ -20,6 +20,11 @@ set(INCLUDE_UNIT_EXT ${CMAKE_CURRENT_SOURCE_DIR})
# Unit tests main modules
file(GLOB SOURCE_UNIT_TEST_EXT_MODULES *.c)
# Disable test-ext-autorelease.c if compiler is MSVC, because MSVC doesn't support cleanup attribute.
if(USING_MSVC)
list(REMOVE_ITEM SOURCE_UNIT_TEST_EXT_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/test-ext-autorelease.c)
endif()
# Unit tests declaration
add_custom_target(unittests-ext)