Skip to content

Commit 6fd29c2

Browse files
committed
tests: port dispatch_io and dispatch_io_pipe_close to Windows
This lets us build and run the full extended test suite for Windows! I caught several bugs in Dispatch's Windows port while I was working on this and I submitted pull requests to fix them (#493, #494). The only dispatch_io test case which fails right now is test_io_stop, and that's because we don't have pipe support on Windows yet.
1 parent 4169c8d commit 6fd29c2

File tree

3 files changed

+187
-63
lines changed

3 files changed

+187
-63
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,8 @@ if(EXTENDED_TEST_SUITE)
146146
pingpong
147147
drift
148148
readsync
149-
cascade)
150-
if(NOT WIN32)
151-
# Not ported to Windows yet
152-
list(APPEND DISPATCH_C_TESTS io)
153-
endif()
149+
cascade
150+
io)
154151
# an oddball; dispatch_priority.c compiled with -DUSE_SET_TARGET_QUEUE=1
155152
add_unit_test(dispatch_priority2 SOURCES dispatch_priority.c)
156153
target_compile_options(dispatch_priority2 PRIVATE -DUSE_SET_TARGET_QUEUE=1)

0 commit comments

Comments
 (0)