mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
changed io tests
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user