Skip to content

Commit

Permalink
Use non-threaded runtime for network tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rnjtranjan authored and harendra-kumar committed Jul 27, 2023
1 parent 6d91b78 commit aaa1161
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion core/streamly-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -475,4 +475,4 @@ library
build-depends: unix >= 2.7.0 && < 2.9

if os(windows)
build-depends: Win32 >= 2.6 && < 2.13
build-depends: Win32 >= 2.6 && < 2.14
26 changes: 14 additions & 12 deletions test/streamly-tests.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -365,28 +365,30 @@ test-suite FileSystem.Handle
buildable: False

test-suite Network.Inet.TCP
import: test-options
import: lib-options
type: exitcode-stdio-1.0
main-is: Streamly/Test/Network/Inet/TCP.hs
ghc-options: -rtsopts -fno-ignore-asserts
include-dirs: .
build-depends: streamly-tests
-- Cannot killThread in listen/accept on Windows threaded runtime
if !os(windows)
ghc-options: -threaded -with-rtsopts=-N
if flag(use-streamly-core)
buildable: False
-- XXX on Windows these test cases are hanging for ever
-- need to be investigated.
-- https://github.com/composewell/streamly/issues/2315
if os(windows)
buildable: False

test-suite Network.Socket
import: test-options
import: lib-options
type: exitcode-stdio-1.0
main-is: Streamly/Test/Network/Socket.hs
ghc-options: -rtsopts -fno-ignore-asserts
include-dirs: .
build-depends: streamly-tests
-- Cannot killThread in listen/accept on Windows threaded runtime
if !os(windows)
ghc-options: -threaded -with-rtsopts=-N
if flag(use-streamly-core)
buildable: False
-- XXX on Windows these test cases are hanging for ever
-- need to be investigated.
-- https://github.com/composewell/streamly/issues/2315
if os(windows)
buildable: False

test-suite Prelude
import: test-options
Expand Down

0 comments on commit aaa1161

Please sign in to comment.