diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-03-18 20:17:09 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-03-26 01:45:41 -0400 |
commit | ad6d57731476d74efc15934967f7916914ff826d (patch) | |
tree | bd8ae4ca8b0ea0b8805cb722d7028ae756b2eea6 | |
parent | e6ee06ee11c915713aefa4f2a5faf3585284f961 (diff) | |
download | rneovim-ad6d57731476d74efc15934967f7916914ff826d.tar.gz rneovim-ad6d57731476d74efc15934967f7916914ff826d.tar.bz2 rneovim-ad6d57731476d74efc15934967f7916914ff826d.zip |
fixup: ping.exe works with cmd.exe pipe
-rw-r--r-- | test/functional/core/job_spec.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 240b2dac1c..a46e107c77 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -677,11 +677,10 @@ describe('jobs', function() -- ..c.."', '-c', '"..c.."'])") -- Create child with several descendants. - local j = (iswin() - and eval([=[jobstart('start /b cmd /c "ping 127.0.0.1 -n 1 -w 30000 > NUL"]=] - ..[=[ & start /b cmd /c "ping 127.0.0.1 -n 1 -w 40000 > NUL"]=] - ..[=[ & start /b cmd /c "ping 127.0.0.1 -n 1 -w 50000 > NUL"')]=]) - or eval("jobstart('sleep 30 | sleep 30 | sleep 30')")) + local sleep_cmd = (iswin() + and 'ping -n 31 127.0.0.1' + or 'sleep 30') + local j = eval("jobstart('"..sleep_cmd..' | '..sleep_cmd..' | '..sleep_cmd.."')") local ppid = funcs.jobpid(j) local children retry(nil, nil, function() |