aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-09-14 10:27:21 -0700
committerGitHub <noreply@github.com>2021-09-14 10:27:21 -0700
commit9edd17509fca597b847656adc8fc20fc1cc44ce5 (patch)
treeeb196a36031aa7e59eb36c09dc10ed45a50a603f /src/nvim/testdir
parentb63b4777ec80069e42326778023db30bd8217f1a (diff)
parent31ac33bf772b17d6a0553b97889aeaf3a5227419 (diff)
downloadrneovim-9edd17509fca597b847656adc8fc20fc1cc44ce5.tar.gz
rneovim-9edd17509fca597b847656adc8fc20fc1cc44ce5.tar.bz2
rneovim-9edd17509fca597b847656adc8fc20fc1cc44ce5.zip
Merge #15657 vim-patch:8.1.1195,8.2.{3417,3419}
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_debugger.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_debugger.vim b/src/nvim/testdir/test_debugger.vim
index d1464e9d3b..a396efc09e 100644
--- a/src/nvim/testdir/test_debugger.vim
+++ b/src/nvim/testdir/test_debugger.vim
@@ -267,9 +267,7 @@ func Test_Debugger()
call RunDbgCmd(buf, 'breakd func a()', ['E475: Invalid argument: func a()'])
call RunDbgCmd(buf, 'breakd func a', ['E161: Breakpoint not found: func a'])
call RunDbgCmd(buf, 'breakd expr', ['E475: Invalid argument: expr'])
- call RunDbgCmd(buf, 'breakd expr x', [
- \ 'E121: Undefined variable: x',
- \ 'E161: Breakpoint not found: expr x'])
+ call RunDbgCmd(buf, 'breakd expr x', ['E161: Breakpoint not found: expr x'])
" finish the current function
call RunDbgCmd(buf, 'finish', [
@@ -314,9 +312,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 +338,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()