Skip to content

Commit 31e2176

Browse files
committed
patch 8.2.3138: debugger test fails
Problem: Debugger test fails. Solution: Adjust eval command.
1 parent c323527 commit 31e2176

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/testdir/test_debugger.vim

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ func Test_debug_def_function()
10061006
}
10071007
# comment
10081008
def Inner()
1009-
eval 1
1009+
eval 1 + 2
10101010
enddef
10111011
enddef
10121012

@@ -1019,16 +1019,16 @@ func Test_debug_def_function()
10191019
enddef
10201020

10211021
def g:FuncForLoop()
1022-
eval 1
1022+
eval 1 + 2
10231023
for i in [11, 22, 33]
1024-
eval i
1024+
eval i + 2
10251025
endfor
10261026
echo "done"
10271027
enddef
10281028

10291029
def g:FuncWithSplitLine()
1030-
eval 1
1031-
| eval 2
1030+
eval 1 + 2
1031+
| eval 2 + 3
10321032
enddef
10331033
END
10341034
call writefile(file, 'Xtest.vim')
@@ -1080,7 +1080,7 @@ func Test_debug_def_function()
10801080
call RunDbgCmd(buf, ':breakadd func 2 FuncForLoop')
10811081
call RunDbgCmd(buf, ':call FuncForLoop()', ['function FuncForLoop', 'line 2: for i in [11, 22, 33]'])
10821082
call RunDbgCmd(buf, 'echo i', ['11'])
1083-
call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 3: eval i'])
1083+
call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 3: eval i + 2'])
10841084
call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 4: endfor'])
10851085
call RunDbgCmd(buf, 'next', ['function FuncForLoop', 'line 2: for i in [11, 22, 33]'])
10861086
call RunDbgCmd(buf, 'echo i', ['22'])
@@ -1089,7 +1089,7 @@ func Test_debug_def_function()
10891089
call RunDbgCmd(buf, 'cont')
10901090

10911091
call RunDbgCmd(buf, ':breakadd func FuncWithSplitLine')
1092-
call RunDbgCmd(buf, ':call FuncWithSplitLine()', ['function FuncWithSplitLine', 'line 1: eval 1 | eval 2'])
1092+
call RunDbgCmd(buf, ':call FuncWithSplitLine()', ['function FuncWithSplitLine', 'line 1: eval 1 + 2 | eval 2 + 3'])
10931093

10941094
call RunDbgCmd(buf, 'cont')
10951095
call StopVimInTerminal(buf)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3138,
758760
/**/
759761
3137,
760762
/**/

0 commit comments

Comments
 (0)