summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2020-04-30 22:47:59 +0200
committerAraq <rumpf_a@web.de>2020-04-30 22:48:10 +0200
commit6b39b47abcf5c528dbaf84ca75b693d1fc4da004 (patch)
treeb2611a6b514ea8dc1fd4ae9d9a18539960362ced
parent89be5be03e316193126cca637b326358489be908 (diff)
downloadNim-6b39b47abcf5c528dbaf84ca75b693d1fc4da004.tar.gz
hotfix: make tcompilerapi green again
-rw-r--r--tests/compilerapi/tcompilerapi.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/compilerapi/tcompilerapi.nim b/tests/compilerapi/tcompilerapi.nim
index edeaa2ba5..9d5e0e3f2 100644
--- a/tests/compilerapi/tcompilerapi.nim
+++ b/tests/compilerapi/tcompilerapi.nim
@@ -17,7 +17,8 @@ import std / [os]
 
 proc main() =
   let std = findNimStdLibCompileTime()
-  var intr = createInterpreter("myscript.nim",[std, parentDir(currentSourcePath)])
+  var intr = createInterpreter("myscript.nim", [std, parentDir(currentSourcePath),
+    std / "pure", std / "core"])
   intr.implementRoutine("*", "exposed", "addFloats", proc (a: VmArgs) =
     setResult(a, getFloat(a, 0) + getFloat(a, 1) + getFloat(a, 2))
   )
@@ -46,7 +47,7 @@ block issue9180:
   proc evalString(code: string, moduleName = "script.nim") =
     let stream = llStreamOpen(code)
     let std = findNimStdLibCompileTime()
-    var intr = createInterpreter(moduleName, [std])
+    var intr = createInterpreter(moduleName, [std, std / "pure", std / "core"])
     intr.evalScript(stream)
     destroyInterpreter(intr)
     llStreamClose(stream)