chore(tests): windows support for process stdin tests

This commit is contained in:
Erica Marigold 2023-09-29 18:58:37 +05:30
parent 33730e1147
commit 7dd9223157
No known key found for this signature in database
GPG key ID: 7843994FD1386E35

View file

@ -141,8 +141,10 @@ assert(
-- Passing stdin strings should work -- Passing stdin strings should work
local stdinChild = process.spawn("xargs", { local isWindows = process.os == "windows"
"echo",
local stdinChild = process.spawn((((not isWindows) and "xargs") or "echo"), {
((not isWindows) and "echo") or nil,
}, { }, {
stdin = echoMessage, stdin = echoMessage,
}) })