test: robustly fix test on Windows
This commit is contained in:
parent
3546c8c355
commit
8b79e0f28c
1 changed files with 3 additions and 3 deletions
|
|
@ -1,16 +1,16 @@
|
|||
open IO.Process
|
||||
|
||||
#eval do
|
||||
child ← spawn { cmd := "bash", args := #["-c", "echo hi!"] };
|
||||
child ← spawn { cmd := "sh", args := #["-c", "echo hi!"] };
|
||||
child.wait
|
||||
|
||||
#eval do
|
||||
child ← spawn { cmd := "bash", args := #["-c", "echo ho!"], stdout := Stdio.piped };
|
||||
child ← spawn { cmd := "sh", args := #["-c", "echo ho!"], stdout := Stdio.piped };
|
||||
child.wait;
|
||||
child.stdout.readToEnd
|
||||
|
||||
#eval do
|
||||
child ← spawn { cmd := "bash", args := #["-c", "head -n 1"], stdin := Stdio.piped, stdout := Stdio.piped };
|
||||
child ← spawn { cmd := "head", args := #["-n1"], stdin := Stdio.piped, stdout := Stdio.piped };
|
||||
child.stdin.putStrLn "hu!";
|
||||
child.stdin.flush;
|
||||
child.wait;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue