make tests green again

This commit is contained in:
Araq
2016-11-06 18:59:49 +01:00
parent d6601b729f
commit 52bb696cd4
2 changed files with 4 additions and 1 deletions

View File

@@ -118,6 +118,9 @@ when false:
gMemCacheData[fileIdx].needsRecompile = No
return No
proc resetSystemArtifacts*() =
magicsys.resetSysTypes()
proc newModule(graph: ModuleGraph; fileIdx: int32): PSym =
# We cannot call ``newSym`` here, because we have to circumvent the ID
# mechanism, which we do in order to assign each module a persistent ID.

View File

@@ -156,7 +156,7 @@ proc runNimScript*(cache: IdentCache; scriptName: string;
discard graph.processModule(m, llStreamOpen(scriptName, fmRead), nil, cache)
# ensure we load 'system.nim' again for the real non-config stuff!
#resetAllModulesHard()
resetSystemArtifacts()
vm.globalCtx = nil
# do not remove the defined symbols
#initDefines()