Fix tests some more

This commit is contained in:
def 2015-03-17 00:02:47 +01:00
commit cb3c99fe1f
11 changed files with 22 additions and 25 deletions

View file

@ -215,7 +215,7 @@ proc manyLoc(r: var TResults, cat: Category, options: string) =
for kind, dir in os.walkDir("tests/manyloc"):
if kind == pcDir:
let mainfile = findMainFile(dir)
if mainfile != ".nim":
if mainfile != "":
testNoSpec r, makeTest(mainfile, options, cat)
proc compileExample(r: var TResults, pattern, options: string, cat: Category) =

View file

@ -146,7 +146,6 @@ proc codegenCheck(test: TTest, check: string, given: var TSpec) =
try:
let (path, name, ext2) = test.name.splitFile
let genFile = generatedFile(path, name, test.target)
echo genFile
let contents = readFile(genFile).string
if check[0] == '\\':
# little hack to get 'match' support: