changed io tests
This commit is contained in:
parent
05fd30df43
commit
f30eb9feb8
2 changed files with 6 additions and 2 deletions
|
|
@ -130,8 +130,10 @@ proc rejectThreadTests(r: var TResults, options: string) =
|
||||||
|
|
||||||
# ------------------------- IO tests -----------------------------------
|
# ------------------------- 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)
|
compileSingleTest(r, "tests/system/helpers/readall_echo.nim", options)
|
||||||
|
|
||||||
|
proc runIOTests(r: var TResults, options: string) =
|
||||||
runSingleTest(r, "tests/system/io", options)
|
runSingleTest(r, "tests/system/io", options)
|
||||||
|
|
||||||
# ------------------------- register special tests here -----------------------
|
# ------------------------- 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/c2nim/c2nim.nim", options)
|
||||||
compileSingleTest(r, "compiler/pas2nim/pas2nim.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 =
|
proc echoLoop(str: string): string =
|
||||||
result = ""
|
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
|
var input = process.inputStream
|
||||||
input.write(str)
|
input.write(str)
|
||||||
input.close()
|
input.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue