diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2011-12-31 19:07:31 +0100 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2011-12-31 19:07:31 +0100 |
commit | ad0ea47f4304aee66d8a39ec61ac49aa83f97ecd (patch) | |
tree | d3cb55080825359c6833b012d6c07fae711ccc7b /tests/system/helpers | |
parent | 9bd2be36c878cb635e1b6ae4d2725cc26e291d7c (diff) | |
download | Nim-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.nim | 3 |
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) |