small fixes for tests on windows

This commit is contained in:
Araq 2012-01-31 00:05:25 +01:00
commit e4a4588b48
5 changed files with 15 additions and 13 deletions

View file

@ -823,7 +823,7 @@ proc evalInclude(c: PContext, n: PNode): PNode =
var f = checkModuleName(n.sons[i])
var fileIndex = f.fileInfoIdx
if ContainsOrIncl(c.includedFiles, fileIndex):
GlobalError(n.info, errRecursiveDependencyX, f.shortenDir)
GlobalError(n.info, errRecursiveDependencyX, f.extractFilename)
addSon(result, semStmt(c, gIncludeFile(f)))
Excl(c.includedFiles, fileIndex)