Skip to content

Commit d8ae416

Browse files
committed
patch 9.1.1837: tests: Test_plugin_evaluate_in_popup() fails on 32bit
Problem: tests: Test_plugin_evaluate_in_popup() fails on 32bit arch (James McCoy) Solution: Instead of evaluating the ptr, let's evaluate just the pointer content, skipping printing the pointer address. fixes: #18499 closes: #18503 Signed-off-by: Christian Brabandt <[email protected]>
1 parent a084914 commit d8ae416

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
|U+0&#ffffff0|s|i|n|g| |h|o|s|t| |l|i|b|t|h|r|e|a|d|_|d|b| |l|i|b|r|a|r|y| |"|/+0#00e0003&|l|i|b|/|x|8|6|_|6|4|-|l|i|n|u|x|-|g|n|u|/|l|i|b|t|h|r|e|a|d|_|d|b|.|s|o|.|1|"+0#0000000&|.|
22
@75
3-
|B|r|e|a|k|p|o|i|n|t| |1|,| |m+0#e0e0004&|a|i|n| +0#0000000&|(|a+0#00e0e07&|r|g|c|=+0#0000000&|1|,| |a+0#00e0e07&|r|g|v|=+0#0000000&|0|x|7|f@6|d|e|f|8|)| @26
3+
|B|r|e|a|k|p|o|i|n|t| |1|,| |m+0#e0e0004&|a|i|n| +0#0000000&|(|a+0#00e0e07&|r|g|c|=+0#0000000&|1|,| |a+0#00e0e07&|r|g|v|=+0#0000000&|0|x|7|f@6|d|e|7|8|)| @26
44
@4|a|t| |X+0#00e0003&|T|D|_|e|v|a|l|u|a|t|e|_|i|n|_|p|o|p|u|p|.|c|:+0#0000000&|9| @42
55
|9| @8|r+2#0000e05&|e|t|u|r|n| +0#0000000&|0+0#e000e06&|;+0#e000002&| +0#0000000&@55
66
@75
@@ -10,11 +10,11 @@
1010
@75
1111
@75
1212
@75
13-
|d+0#ffffff16#00e0003|e|b|u|p+0#0000001#ffd7ff255|_|p|t|r|:| |0|x|7|f@6|d@1|c|0| |=| |{| +0#ffffff16#00e0003@27|0|,|0|-|1| @9|A|l@1
14-
| +0#0000000#e0e0e08| +2#ffffff16#6c6c6c255|S|t| +0#0000001#ffd7ff255@1|x| |=| |1|,| @16|o+2#ffffff16#6c6c6c255|n|t| | +0#0000000#e0e0e08@1| +2#ffffff16#6c6c6c255|S|t|o|p| | +0#0000000#e0e0e08@1| +2#ffffff16#6c6c6c255|E|v|a|l| | +0#0000000#e0e0e08@25
15-
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@1| +0#0000001#ffd7ff255@1|y| |=| |2| @17|}+0#0000000#ffffff0|;| @43
16-
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@1|}+0#0000001#ffd7ff255| @23| +0#0000000#ffffff0@45
13+
|d+0#ffffff16#00e0003|e|b|u|*+0#0000001#ffd7ff255|p|_|p|t|r|:| |{|r+0#ffffff16#00e0003|a|m| |[|a|c|t|i|v|e|]| @31|0|,|0|-|1| @9|A|l@1
14+
| +0#0000000#e0e0e08| +2#ffffff16#6c6c6c255|S|t| +0#0000001#ffd7ff255@1|x| |=| |1|,| |t+2#ffffff16#6c6c6c255| | +0#0000000#e0e0e08@1| +2#ffffff16#6c6c6c255|F|i|n|i|s|h| | +0#0000000#e0e0e08@1| +2#ffffff16#6c6c6c255|C|o|n|t| | +0#0000000#e0e0e08@1| +2#ffffff16#6c6c6c255|S|t|o|p| | +0#0000000#e0e0e08@1| +2#ffffff16#6c6c6c255|E|v|a|l| | +0#0000000#e0e0e08@25
15+
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@1| +0#0000001#ffd7ff255@1|y| |=| |2| @1|i+0#0000000#ffffff0|n|t| |p| |=| |{|a|r|g|c|,| |2+0#e000002&|}+0#0000000&|;| @43
16+
| +0#0000e05#a8a8a8255@1| +0#0000000#ffffff0@1|}+0#0000001#ffd7ff255| @7|i+0#0000000#ffffff0|n|t|*| |p|_|p|t|r| |=| |&|p|;| @45
1717
|0+0&#ff404010|1| +0&#5fd7ff255@1>r+0#af5f00255&|e|t|u|r|n| +0#0000000&|0+0#e000002&|;+0#0000000&| @61
1818
| +0#0000e05#a8a8a8255@1|}+0#0000000#ffffff0| @71
1919
|X+3&&|T|D|_|e|v|a|l|u|a|t|e|_|i|n|_|p|o|p|u|p|.|c| @33|9|,|3| @11|B|o|t
20-
|:+0&&|E|v|a|l|u|a|t|e| |p|_|p|t|r| @59
20+
|:+0&&|E|v|a|l|u|a|t|e| |*|p|_|p|t|r| @58

src/testdir/dumps/Test_termdebug_evaluate_in_popup_02.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
" replace hex addresses with |0|x|f@12|
2-
:%s/|0|x|\(\(\w\|@\)\+|\)\+/|0|x|f@12|/g
3-
41
" Only keep screen lines relevant to the actual popup and evaluation.
52
" Especially the top lines are too instable and cause flakiness between
63
" different systems and tool versions.

src/testdir/test_plugin_termdebug.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func Test_termdebug_evaluate_in_popup()
351351
call TermWait(buf, 400)
352352
call VerifyScreenDump(buf, 'Test_termdebug_evaluate_in_popup_01', {})
353353

354-
call term_sendkeys(buf, ":Evaluate p_ptr\<CR>")
354+
call term_sendkeys(buf, ":Evaluate *p_ptr\<CR>")
355355
call TermWait(buf, 400)
356356
call VerifyScreenDump(buf, 'Test_termdebug_evaluate_in_popup_02', {})
357357

src/version.c

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

730730
static int included_patches[] =
731731
{ /* Add new patch number below this line */
732+
/**/
733+
1837,
732734
/**/
733735
1836,
734736
/**/

0 commit comments

Comments
 (0)