File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ tested-with: GHC == 8.0.2
54
54
, GHC == 8.8.3
55
55
, GHC == 8.10.1
56
56
57
+ flag devel
58
+ description : using tests for developers
59
+ default : False
60
+
57
61
library
58
62
default-language : Haskell2010
59
63
exposed-modules :
@@ -126,6 +130,8 @@ test-suite spec
126
130
default-language : Haskell2010
127
131
hs-source-dirs : tests
128
132
main-is : Spec.hs
133
+ if flag(devel)
134
+ cpp-options : -DDEVELOPMENT
129
135
other-modules :
130
136
Network.Test.Common
131
137
Network.SocketSpec
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ spec = do
58
58
bind sock (addrAddress addr) `shouldThrow` anyIOException
59
59
-}
60
60
61
+ #ifdef DEVELOPMENT
61
62
it " successfully binds to an ipv6 socket" $ do
62
63
addr: _ <- getAddrInfo (Just hints) (Just serverAddr6) Nothing
63
64
sock <- socket (addrFamily addr) (addrSocketType addr) (addrProtocol addr)
@@ -67,6 +68,7 @@ spec = do
67
68
addr: _ <- getAddrInfo (Just hints) (Just " ::6" ) Nothing
68
69
sock <- socket (addrFamily addr) (addrSocketType addr) (addrProtocol addr)
69
70
bind sock (addrAddress addr) `shouldThrow` anyIOException
71
+ #endif
70
72
71
73
it " successfully binds to a unix socket, twice" $ do
72
74
withSystemTempDirectory " haskell-network" $ \ path -> do
You can’t perform that action at this time.
0 commit comments