win: test: check non-shell system()

This commit is contained in:
Jan Edmund Lazo
2017-11-06 21:00:19 -05:00
committed by Justin M. Keyes
parent 8d58012786
commit d4485f7cc0

View File

@@ -89,7 +89,9 @@ describe('system()', function()
end)
it('does NOT run in shell', function()
if not iswin() then
if iswin() then
eq("%PATH%\n", eval("system(['powershell', '-NoProfile', '-NoLogo', '-ExecutionPolicy', 'RemoteSigned', '-Command', 'echo', '%PATH%'])"))
else
eq("* $PATH %PATH%\n", eval("system(['echo', '*', '$PATH', '%PATH%'])"))
end
end)