diff options
author | James McCoy <jamessan@jamessan.com> | 2022-03-02 11:57:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 11:57:19 -0500 |
commit | 482ea0cc175937fd199d5e1a1947ea73d1a38593 (patch) | |
tree | 00d5dfa2dc2da850e5fd83d60f5ee7a420990f66 | |
parent | 0e02a5f10909e3be186c1531dc3ca75dbcbf0e33 (diff) | |
parent | bc04c3d1ba532040b19f30ea082194199d9c5711 (diff) | |
download | rneovim-482ea0cc175937fd199d5e1a1947ea73d1a38593.tar.gz rneovim-482ea0cc175937fd199d5e1a1947ea73d1a38593.tar.bz2 rneovim-482ea0cc175937fd199d5e1a1947ea73d1a38593.zip |
Merge pull request #17575 from zeertzjq/pty-did-eof
fix(pty_process_win/wait_eof_timer_cb): also check for proc->out.did_eof
-rw-r--r-- | ci/build.ps1 | 20 | ||||
-rw-r--r-- | src/nvim/os/pty_process_win.c | 2 |
2 files changed, 9 insertions, 13 deletions
diff --git a/ci/build.ps1 b/ci/build.ps1 index 01579a96fe..c7c3b3d470 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -164,21 +164,17 @@ if (-not $NoTests) { exit $LastExitCode } - # FIXME: These tests freezes on github CI and causes all jobs to fail. - # Comment out until this is fixed. - # Old tests # Add MSYS to path, required for e.g. `find` used in test scripts. # But would break functionaltests, where its `more` would be used then. - - # $OldPath = $env:PATH - # $env:PATH = "C:\msys64\usr\bin;$env:PATH" - # & "C:\msys64\mingw$bits\bin\mingw32-make.exe" -C $(Convert-Path ..\src\nvim\testdir) VERBOSE=1 ; exitIfFailed - # $env:PATH = $OldPath - - # if ($uploadToCodecov) { - # bash -l /c/projects/neovim/ci/common/submit_coverage.sh oldtest - # } + $OldPath = $env:PATH + $env:PATH = "C:\msys64\usr\bin;$env:PATH" + & "C:\msys64\mingw$bits\bin\mingw32-make.exe" -C $(Convert-Path ..\src\nvim\testdir) VERBOSE=1 ; exitIfFailed + $env:PATH = $OldPath + + if ($uploadToCodecov) { + bash -l /c/projects/neovim/ci/common/submit_coverage.sh oldtest + } } # Ensure choco's cpack is not in PATH otherwise, it conflicts with CMake's diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c index f78f3e66f5..99231968a2 100644 --- a/src/nvim/os/pty_process_win.c +++ b/src/nvim/os/pty_process_win.c @@ -281,7 +281,7 @@ static void wait_eof_timer_cb(uv_timer_t *wait_eof_timer) PtyProcess *ptyproc = wait_eof_timer->data; Process *proc = (Process *)ptyproc; - if (proc->out.closed || !uv_is_readable(proc->out.uvstream)) { + if (proc->out.closed || proc->out.did_eof || !uv_is_readable(proc->out.uvstream)) { uv_timer_stop(&ptyproc->wait_eof_timer); pty_process_finish2(ptyproc); } |