Fix #14091 and #14093 - test failures on NetBSD (#14096)

This commit is contained in:
Euan
2020-04-24 08:18:44 +01:00
committed by GitHub
parent f07f07eef9
commit 123f9fb77a
3 changed files with 4 additions and 1 deletions

View File

@@ -239,6 +239,8 @@ proc parseSpec*(filename: string): TSpec =
when defined(arm64): result.err = reDisabled
of "openbsd":
when defined(openbsd): result.err = reDisabled
of "netbsd":
when defined(netbsd): result.err = reDisabled
else:
result.parseErrors.addLine "cannot interpret as a bool: ", e.value
of "cmd":

View File

@@ -3,6 +3,7 @@ discard """
exitcode: 1
target: "c"
disabled: "openbsd"
disabled: "netbsd"
"""
# todo: remove `target: "c"` workaround once #10343 is properly fixed
close stdmsg

View File

@@ -15,7 +15,7 @@ block DGRAM_UDP:
doAssert aiList.ai_next == nil
freeAddrInfo aiList
when defined(posix) and not defined(haiku) and not defined(freebsd) and not defined(openbsd):
when defined(posix) and not defined(haiku) and not defined(freebsd) and not defined(openbsd) and not defined(netbsd):
block RAW_ICMP:
# the port will be ignored