CIs: attempt to use csources_v1 (#16282)

* CIs: attempt to use csources_v1
* also updated the BSDs
* also updated azure pipelines
* std modules should not itself use the 'std/' import dir...
* compiler has to be careful with std/ for v1 booting
This commit is contained in:
Andreas Rumpf 2021-04-21 07:41:33 +02:00 • committed by GitHub
commit a9b62de895
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 142 additions and 143 deletions

View file

@ -108,15 +108,15 @@
import std/private/since
import std/exitprocs
import std/[macros, strutils, streams, times, sets, sequtils]
import macros, strutils, streams, times, sets, sequtils
when declared(stdout):
import std/os
import os
const useTerminal = not defined(js)
when useTerminal:
import std/terminal
import terminal
type
TestStatus* = enum ## The status of a test when it is done.
@ -747,7 +747,7 @@ macro expect*(exceptions: varargs[typed], body: untyped): untyped =
of 2: discard parseInt("Hello World!")
of 3: raise newException(IOError, "I can't do that Dave.")
else: assert 2 + 2 == 5
expect IOError, OSError, ValueError, AssertionDefect:
defectiveRobot()