Mercurial > vim
comparison src/testdir/test_execute_func.vim @ 30405:ea38db8639eb v9.0.0538
patch 9.0.0538: manually deleting test temp files
Commit: https://github.com/vim/vim/commit/5c645a25bb8e6d766db720a44b9ceeff39d1e92b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 21 22:00:03 2022 +0100
patch 9.0.0538: manually deleting test temp files
Problem: Manually deleting test temp files.
Solution: Add the 'D' flag to writefile().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Sep 2022 23:15:03 +0200 |
parents | 029c59bf78f1 |
children | 239e20a09999 |
comparison
equal
deleted
inserted
replaced
30404:20bbd0c0761b | 30405:ea38db8639eb |
---|---|
181 silent tabedit Xfile2 | 181 silent tabedit Xfile2 |
182 var id = win_getid() | 182 var id = win_getid() |
183 silent tabedit Xfile3 | 183 silent tabedit Xfile3 |
184 autocmd VimEnter * win_execute(id, 'close') | 184 autocmd VimEnter * win_execute(id, 'close') |
185 END | 185 END |
186 call writefile(lines, 'XwinExecute') | 186 call writefile(lines, 'XwinExecute', 'D') |
187 let buf = RunVimInTerminal('-p Xfile1 -Nu XwinExecute', {}) | 187 let buf = RunVimInTerminal('-p Xfile1 -Nu XwinExecute', {}) |
188 | 188 |
189 " this was crashing on exit with EXITFREE defined | 189 " this was crashing on exit with EXITFREE defined |
190 call StopVimInTerminal(buf) | 190 call StopVimInTerminal(buf) |
191 | 191 |
192 call delete('XwinExecute') | |
193 call delete('Xfile1') | 192 call delete('Xfile1') |
194 endfunc | 193 endfunc |
195 | 194 |
196 func Test_execute_func_with_null() | 195 func Test_execute_func_with_null() |
197 call assert_equal("", execute(test_null_string())) | 196 call assert_equal("", execute(test_null_string())) |