Fixes #4871
This commit is contained in:
parent
00b749c418
commit
39f03d816c
5 changed files with 23 additions and 4 deletions
12
tests/vm/tgorge.nim
Normal file
12
tests/vm/tgorge.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import os
|
||||
|
||||
template getScriptDir(): string =
|
||||
parentDir(instantiationInfo(-1, true).filename)
|
||||
|
||||
const
|
||||
execName = when defined(windows): "tgorge.bat" else: "./tgorge.sh"
|
||||
relOutput = gorge(execName)
|
||||
absOutput = gorge(getScriptDir() / execName)
|
||||
|
||||
doAssert relOutput == "gorge test"
|
||||
doAssert absOutput == "gorge test"
|
||||
Loading…
Add table
Add a link
Reference in a new issue