summary refs log tree commit diff stats
path: root/tests/system/helpers/readall_echo.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/helpers/readall_echo.nim')
-rw-r--r--tests/system/helpers/readall_echo.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/system/helpers/readall_echo.nim b/tests/system/helpers/readall_echo.nim
index 2890217ef..79937bf6f 100644
--- a/tests/system/helpers/readall_echo.nim
+++ b/tests/system/helpers/readall_echo.nim
@@ -1 +1,2 @@
-echo(stdin.readAll)
+when isMainModule:
+  echo(stdin.readAll)