make tests on Windows green under --pedantic

This commit is contained in:
Araq 2017-02-02 21:12:36 +01:00
commit e236039d10
4 changed files with 15 additions and 17 deletions

View file

@ -284,9 +284,9 @@ proc compileExample(r: var TResults, pattern, options: string, cat: Category) =
testNoSpec r, makeTest(test, options, cat)
proc testStdlib(r: var TResults, pattern, options: string, cat: Category) =
var disabledSet = disabledFiles.toSet()
for test in os.walkFiles(pattern):
if test notin disabledSet:
let name = extractFilename(test)
if name notin disabledFiles:
let contents = readFile(test).string
if contents.contains("when isMainModule"):
testSpec r, makeTest(test, options, cat, actionRunNoSpec)