aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-11-13 06:49:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-11-13 06:49:57 +0800
commit49d126e005211d6fbe54bccff9aa0f0e1eeefcef (patch)
tree7d9b76158de44305eb376b04be2548bf48a99a0f
parentb313109a25ac5d910b109410ed34324785bf3142 (diff)
downloadrneovim-49d126e005211d6fbe54bccff9aa0f0e1eeefcef.tar.gz
rneovim-49d126e005211d6fbe54bccff9aa0f0e1eeefcef.tar.bz2
rneovim-49d126e005211d6fbe54bccff9aa0f0e1eeefcef.zip
vim-patch:8.2.3138: debugger test fails
Problem: Debugger test fails. Solution: Adjust eval command. https://github.com/vim/vim/commit/31e21766d6fb0a386e15ccc8c2192f6a3a210f53 Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/test_debugger.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/old/testdir/test_debugger.vim b/test/old/testdir/test_debugger.vim
index 4cf25b9521..fce80a948a 100644
--- a/test/old/testdir/test_debugger.vim
+++ b/test/old/testdir/test_debugger.vim
@@ -1047,7 +1047,7 @@ func Test_debug_def_function()
}
# comment
def Inner()
- eval 1
+ eval 1 + 2
enddef
enddef
@@ -1060,16 +1060,16 @@ func Test_debug_def_function()
enddef
def g:FuncForLoop()
- eval 1
+ eval 1 + 2
for i in [11, 22, 33]
- eval i
+ eval i + 2
endfor
echo "done"
enddef
def g:FuncWithSplitLine()
- eval 1
- | eval 2
+ eval 1 + 2
+ | eval 2 + 3
enddef
END
call writefile(file, 'Xtest.vim')
@@ -1121,7 +1121,7 @@ func Test_debug_def_function()
call RunDbgCmd(buf, ':breakadd func 2 FuncForLoop')
call RunDbgCmd(buf, ':call FuncForLoop()', ['function FuncForLoop', 'line 2: for i in [11, 22, 33]'])
call RunDbgCmd(buf, 'echo i', ['11'])
- call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 3: eval i'])
+ call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 3: eval i + 2'])
call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 4: endfor'])
call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 2: for i in [11, 22, 33]'])
call RunDbgCmd(buf, 'echo i', ['22'])
@@ -1130,7 +1130,7 @@ func Test_debug_def_function()
call RunDbgCmd(buf, 'cont')
call RunDbgCmd(buf, ':breakadd func FuncWithSplitLine')
- call RunDbgCmd(buf, ':call FuncWithSplitLine()', ['function FuncWithSplitLine', 'line 1: eval 1 | eval 2'])
+ call RunDbgCmd(buf, ':call FuncWithSplitLine()', ['function FuncWithSplitLine', 'line 1: eval 1 + 2 | eval 2 + 3'])
call RunDbgCmd(buf, 'cont')
call StopVimInTerminal(buf)