mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
reset n before stderr path too
This commit is contained in:
@@ -426,6 +426,7 @@ process_exec :: proc(
|
||||
}
|
||||
|
||||
if err == nil && !stderr_done {
|
||||
n = 0
|
||||
has_data, err = pipe_has_data(stderr_r)
|
||||
if has_data {
|
||||
n, err = read(stderr_r, buf[:])
|
||||
|
||||
@@ -21,4 +21,5 @@ test_process_exec :: proc(t: ^testing.T) {
|
||||
testing.expect_value(t, state.success, true)
|
||||
testing.expect_value(t, err, nil)
|
||||
testing.expect_value(t, string(stdout), "hellope\n")
|
||||
testing.expect_value(t, string(stderr), "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user