mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-02 12:04:44 +00:00
error instead of echo when testament category is empty; fix realtimeGC (#16162)
This commit is contained in:
@@ -748,7 +748,9 @@ proc processCategory(r: var TResults, cat: Category,
|
||||
testSpec r, test
|
||||
inc testsRun
|
||||
if testsRun == 0:
|
||||
echo "[Warning] - Invalid category specified \"", cat.string, "\", no tests were run"
|
||||
const whiteListedDirs = ["deps"]
|
||||
doAssert cat.string in whiteListedDirs,
|
||||
"Invalid category specified: '$#' not in whilelist: $#" % [cat.string, $whiteListedDirs]
|
||||
|
||||
proc processPattern(r: var TResults, pattern, options: string; simulate: bool) =
|
||||
var testsRun = 0
|
||||
|
||||
Reference in New Issue
Block a user