diff options
author | Araq <rumpf_a@web.de> | 2011-12-31 13:56:09 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-12-31 13:56:09 +0100 |
commit | f30eb9feb8430587d285d863f4f906d8874b8d73 (patch) | |
tree | 8916e2a9982e480e8da95a8118f90fc4ce1db7b0 | |
parent | 05fd30df436de4f8d489ec00fc7f6e31dd64dde2 (diff) | |
download | Nim-f30eb9feb8430587d285d863f4f906d8874b8d73.tar.gz |
changed io tests
-rw-r--r-- | tests/specials.nim | 6 | ||||
-rw-r--r-- | tests/system/io.nim | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/specials.nim b/tests/specials.nim index ea3e58fbf..5152b089f 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 4837f7093..2c68fd249 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() |