make tests green on Unix
This commit is contained in:
parent
02b78d3f94
commit
5bf6ad9fa3
2 changed files with 6 additions and 5 deletions
|
|
@ -647,7 +647,3 @@ proc listHints*(conf: ConfigRef) =
|
||||||
if hint in conf.notes: "x" else: " ",
|
if hint in conf.notes: "x" else: " ",
|
||||||
configuration.HintsToStr[ord(hint) - ord(hintMin)]
|
configuration.HintsToStr[ord(hint) - ord(hintMin)]
|
||||||
])
|
])
|
||||||
|
|
||||||
# enable colors by default on terminals
|
|
||||||
#if terminal.isatty(stderr):
|
|
||||||
# incl(gGlobalOptions, optUseColors)
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@
|
||||||
import
|
import
|
||||||
os, strutils, strtabs, osproc, sets, configuration, platform
|
os, strutils, strtabs, osproc, sets, configuration, platform
|
||||||
|
|
||||||
|
from terminal import isatty
|
||||||
|
|
||||||
const
|
const
|
||||||
hasTinyCBackend* = defined(tinyc)
|
hasTinyCBackend* = defined(tinyc)
|
||||||
useEffectSystem* = true
|
useEffectSystem* = true
|
||||||
|
|
@ -182,7 +184,7 @@ const
|
||||||
optBoundsCheck, optOverflowCheck, optAssert, optWarns,
|
optBoundsCheck, optOverflowCheck, optAssert, optWarns,
|
||||||
optHints, optStackTrace, optLineTrace,
|
optHints, optStackTrace, optLineTrace,
|
||||||
optPatterns, optNilCheck, optMoveCheck}
|
optPatterns, optNilCheck, optMoveCheck}
|
||||||
DefaultGlobalOptions* = {optThreadAnalysis, optUseColors}
|
DefaultGlobalOptions* = {optThreadAnalysis}
|
||||||
|
|
||||||
template newPackageCache*(): untyped =
|
template newPackageCache*(): untyped =
|
||||||
newStringTable(when FileSystemCaseSensitive:
|
newStringTable(when FileSystemCaseSensitive:
|
||||||
|
|
@ -221,6 +223,9 @@ proc newConfigRef*(): ConfigRef =
|
||||||
implicitIncludes: @[], # modules that are to be implicitly included
|
implicitIncludes: @[], # modules that are to be implicitly included
|
||||||
docSeeSrcUrl: ""
|
docSeeSrcUrl: ""
|
||||||
)
|
)
|
||||||
|
# enable colors by default on terminals
|
||||||
|
if terminal.isatty(stderr):
|
||||||
|
incl(result.globalOptions, optUseColors)
|
||||||
|
|
||||||
proc newPartialConfigRef*(): ConfigRef =
|
proc newPartialConfigRef*(): ConfigRef =
|
||||||
## create a new ConfigRef that is only good enough for error reporting.
|
## create a new ConfigRef that is only good enough for error reporting.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue