test/oldtest: avoid delete() on files used by a subprocess

This should avoid the hangs observed in the TSAN build on travis CI.

TODO: Find the root cause ...
This commit is contained in:
Justin M. Keyes 2017-08-04 21:48:43 +02:00
parent 92101947fe
commit 678e87b90a

View File

@ -481,9 +481,12 @@ function! ExtraVim(...)
bwipeout
let g:Xpath = g:Xpath + sum
" FIXME(nvim): delete() of a file used by a subprocess hangs TSAN build on travis CI.
if !empty($TRAVIS)
" Delete the extra script and the resultfile.
call delete(extra_script)
call delete(resultfile)
endif
" Switch back to the buffer that was active when this function was entered.
exec "buffer" current_buffnr