aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-09-13 16:42:33 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-09-13 17:19:24 +0100
commit936c4ae1519c6d30a02d328214f8b797bfbd7738 (patch)
tree48185ce5e9ecea3714f1cb1f5b30d22e9f0c7352 /src/nvim/testdir
parent9f3d7dcda2478516bd4cbb1616429520fb8bf1b5 (diff)
downloadrneovim-936c4ae1519c6d30a02d328214f8b797bfbd7738.tar.gz
rneovim-936c4ae1519c6d30a02d328214f8b797bfbd7738.tar.bz2
rneovim-936c4ae1519c6d30a02d328214f8b797bfbd7738.zip
vim-patch:8.2.3417: Vim9: a failing debug expression aborts script sourcing
Problem: Vim9: a failing debug expression aborts script sourcing. Solution: Do not let expression failure abort script sourcing. (closes vim/vim#8848) https://github.com/vim/vim/commit/072f1c68884a1e2d468a0f39e27fc28168fb4b03 Vim9script is N/A, exclude Test_Debugger_breakadd_expr. Move debuggy struct to before generated header inclusion so eval_expr_restore prototype works. Add CheckRunVimInTerminal to Test_Debugger_breakadd. Cherry-pick Test_Debugger_breakadd changes from v8.2.1440, v8.2.1736.
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_debugger.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_debugger.vim b/src/nvim/testdir/test_debugger.vim
index d1464e9d3b..c6d6a90275 100644
--- a/src/nvim/testdir/test_debugger.vim
+++ b/src/nvim/testdir/test_debugger.vim
@@ -314,9 +314,12 @@ func Test_Debugger()
call RunDbgCmd(buf, 'enew! | only!')
call StopVimInTerminal(buf)
+endfunc
+func Test_Debugger_breakadd()
" Tests for :breakadd file and :breakadd here
" Breakpoints should be set before sourcing the file
+ CheckRunVimInTerminal
let lines =<< trim END
let var1 = 10
@@ -337,6 +340,10 @@ func Test_Debugger()
call StopVimInTerminal(buf)
call delete('Xtest.vim')
+ %bw!
+
+ call assert_fails('breakadd here', 'E32:')
+ call assert_fails('breakadd file Xtest.vim /\)/', 'E55:')
endfunc
func Test_Backtrace_Through_Source()