mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-26 09:14:00 +00:00
Darwin has long deprecated the wait union, but their macros still assume it unless you define _POSIX_C_SOURCE. This trips up C++ compilers. This commit duplicates the behavior of WEXITSTATUS when _POSIX_C_SOURCE is defined.
This commit is contained in:
13
tests/stdlib/t10231.nim
Normal file
13
tests/stdlib/t10231.nim
Normal file
@@ -0,0 +1,13 @@
|
||||
discard """
|
||||
target: cpp
|
||||
action: run
|
||||
exitcode: 0
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
if paramCount() == 0:
|
||||
# main process
|
||||
doAssert execShellCmd(getAppFilename().quoteShell & " test") == 1
|
||||
else:
|
||||
quit 1
|
||||
Reference in New Issue
Block a user