summary refs log tree commit diff stats
path: root/tests/system/helpers
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2011-12-31 19:07:31 +0100
committerSimon Hafner <hafnersimon@gmail.com>2011-12-31 19:07:31 +0100
commitad0ea47f4304aee66d8a39ec61ac49aa83f97ecd (patch)
treed3cb55080825359c6833b012d6c07fae711ccc7b /tests/system/helpers
parent9bd2be36c878cb635e1b6ae4d2725cc26e291d7c (diff)
downloadNim-ad0ea47f4304aee66d8a39ec61ac49aa83f97ecd.tar.gz
fixed the io tests so they run as intended
There is however a problem with the unittest. It does output
colors even if stdout isn't a tty, so the test still fails.
Diffstat (limited to 'tests/system/helpers')
-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)