Skip to content

Commit eeaa41e

Browse files
committed
Disable jerry_create_context doctest on Windows
This test is based on pthread, and there is no pthread on Windows. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
1 parent c05686b commit eeaa41e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/02.API-REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6425,7 +6425,7 @@ jerry_create_context (uint32_t heap_size,
64256425

64266426
**Example**
64276427

6428-
[doctest]: # (test="compile")
6428+
[doctest]: # (test="compile", name="02.API-REFERENCE-create-context.c")
64296429

64306430
```c
64316431
#include <stdlib.h>

tests/unit-doc/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ foreach(DOCTEST_ELEMENT IN LISTS DOCTEST_LIST)
5454
endif()
5555
endforeach()
5656

57+
# Disable 02.API-REFERENCE-create-context.c on Windows, because there is no pthread on it.
58+
if("${PLATFORM}" STREQUAL "WINDOWS")
59+
list(REMOVE_ITEM DOCTEST_COMPILE ${CMAKE_CURRENT_SOURCE_DIR}/02.API-REFERENCE-create-context.c)
60+
endif()
61+
5762
# Add custom command to run doctest generator if any of the MarkDown sources
5863
# changes.
5964
add_custom_command(

0 commit comments

Comments
 (0)