From f30eb9feb8430587d285d863f4f906d8874b8d73 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 31 Dec 2011 13:56:09 +0100 Subject: [PATCH] changed io tests --- tests/specials.nim | 6 +++++- tests/system/io.nim | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/specials.nim b/tests/specials.nim index ea3e58fbf1..5152b089f6 100644 --- a/tests/specials.nim +++ b/tests/specials.nim @@ -130,8 +130,10 @@ proc rejectThreadTests(r: var TResults, options: string) = # ------------------------- IO tests ----------------------------------- -proc runIOTests(r: var TResults, options: string) = +proc compileIOTests(r: var TResults, options: string) = compileSingleTest(r, "tests/system/helpers/readall_echo.nim", options) + +proc runIOTests(r: var TResults, options: string) = runSingleTest(r, "tests/system/io", options) # ------------------------- register special tests here ----------------------- @@ -151,3 +153,5 @@ proc compileSpecialTests(r: var TResults, options: string) = compileSingleTest(r, "compiler/c2nim/c2nim.nim", options) compileSingleTest(r, "compiler/pas2nim/pas2nim.nim", options) + compileIOTests(r, options) + diff --git a/tests/system/io.nim b/tests/system/io.nim index 4837f7093c..2c68fd249b 100644 --- a/tests/system/io.nim +++ b/tests/system/io.nim @@ -9,7 +9,7 @@ const TEST_FILE = "tests/testdata/string" proc echoLoop(str: string): string = result = "" - var process = startProcess(os.addFileExt("tests/system/helpers/readall_echo", ExeExt)) + var process = startProcess(findExe("tests/system/helpers/readall_echo")) var input = process.inputStream input.write(str) input.close()