summaryrefslogtreecommitdiff
path: root/tests/modules/stdin/test.lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-01 19:28:23 +0300
committerSaikari <[email protected]>2026-02-01 19:28:23 +0300
commitc68524a15b90a0c400930c9ca9c4ba4e7911e569 (patch)
treed2900a07aa7f6c1317e2aca84449dc977da6dae5 /tests/modules/stdin/test.lua
parent2fbded813d6b413f3174c85cf5ca4e6ec76dda28 (diff)
refactor: update PowerShell stdin command format for macOS compatibility
Diffstat (limited to 'tests/modules/stdin/test.lua')
-rw-r--r--tests/modules/stdin/test.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua
index f2609c531..44d0da2b7 100644
--- a/tests/modules/stdin/test.lua
+++ b/tests/modules/stdin/test.lua
@@ -116,6 +116,9 @@ function main(t)
if pwsh ~= "" then
local run_stdin = string.format("%s l --stdin", xmake)
+ if os.host() == "macosx" then
+ run_stdin = string.format('sh -c \\"%s\\"', run_stdin)
+ end
test_shell(
"pwsh_single",
string.format('%s -c "echo \\"print(\'hello_pwsh\')\\" | %s"', pwsh, run_stdin),