aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-08-04 21:48:43 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-08-04 22:48:26 +0200
commit678e87b90a08915d4fc16e3aada133f6482ba7a3 (patch)
tree1d5bb4969bcf901e9d1ecd8472856f9c93883c66
parent92101947febf304b009059aa3ef33863e071e9a0 (diff)
downloadrneovim-678e87b90a08915d4fc16e3aada133f6482ba7a3.tar.gz
rneovim-678e87b90a08915d4fc16e3aada133f6482ba7a3.tar.bz2
rneovim-678e87b90a08915d4fc16e3aada133f6482ba7a3.zip
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 ...
-rw-r--r--src/nvim/testdir/test49.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test49.vim b/src/nvim/testdir/test49.vim
index 467abcd9b9..a0e170dea4 100644
--- a/src/nvim/testdir/test49.vim
+++ b/src/nvim/testdir/test49.vim
@@ -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