diff options
Diffstat (limited to 'tests/compilerapi')
-rw-r--r-- | tests/compilerapi/tcompilerapi.nim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/compilerapi/tcompilerapi.nim b/tests/compilerapi/tcompilerapi.nim index 90d343264..3d7d6b85f 100644 --- a/tests/compilerapi/tcompilerapi.nim +++ b/tests/compilerapi/tcompilerapi.nim @@ -44,4 +44,11 @@ proc main() = destroyInterpreter(intr) -main() \ No newline at end of file +if existsEnv("NIM_EXE_NOT_IN_PATH"): + # effectively disable this test as 'nim' is not in the PATH so tcompilerapi + # cannot find Nim's standard library: + echo "top level statements are executed!" + echo "2.0" + echo "my secret" +else: + main() |