adding some provisions for writing lower-level unit tests targeting specific sub-systems of the compiler
see sigmatch as an example. tests are compiled only when the compiler is compiled with -d:selftest to execute them, just run the resulting binary without arguments
This commit is contained in:
parent
a068aaed3c
commit
1e26047c3b
5 changed files with 31 additions and 6 deletions
|
|
@ -76,5 +76,7 @@ when compileOption("gc", "v2") or compileOption("gc", "refc"):
|
|||
# the new correct mark&sweet collector is too slow :-/
|
||||
GC_disableMarkAndSweep()
|
||||
condsyms.InitDefines()
|
||||
HandleCmdLine()
|
||||
quit(int8(msgs.gErrorCounter > 0))
|
||||
|
||||
when not defined(selftest):
|
||||
HandleCmdLine()
|
||||
quit(int8(msgs.gErrorCounter > 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue