mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 23:15:02 +00:00
runnableExamples: use the self exe to test the examples
This commit is contained in:
@@ -607,7 +607,7 @@ proc testExamples(c: PContext) =
|
||||
elif isDefined(c.config, "cpp"): "cpp"
|
||||
elif isDefined(c.config, "objc"): "objc"
|
||||
else: "c"
|
||||
if os.execShellCmd("nim " & backend & " -r " & outp) != 0:
|
||||
if os.execShellCmd(os.getAppFilename() & " " & backend & " -r " & outp) != 0:
|
||||
quit "[Examples] failed"
|
||||
removeFile(outp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user