Skip to content

Commit 6a02eb0

Browse files
committed
patch 9.1.0057: MS-Windows: Key event test still fails
Problem: MS-Windows: Key event test still fails Solution: Skip testing CTRL-C, since it causes an Interrupt which causes a test failure (after 9.1.0053) Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 6638ec8 commit 6a02eb0

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

src/testdir/test_mswin_event.vim

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -470,19 +470,19 @@ func Test_mswin_event_character_keys()
470470

471471
" Test for <Ctrl-A> to <Ctrl-Z> keys
472472
" Expect the unicode characters 0x01 to 0x1A
473-
" Note: May cause an Interrupt to be triggered for Ctrl-C
473+
" Note: Skip C because it triggers an Interrupt (CTRL-C)
474+
" which causes a test failure
474475
for modkey in [s:VK.CONTROL, s:VK.LCONTROL, s:VK.RCONTROL]
475476
for kc in range(65, 90)
476-
try
477-
call SendKeyGroup([modkey, kc])
478-
let ch = Getcharstr()
479-
call assert_equal(nr2char(kc - 64), ch)
480-
call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
481-
let ch = Getcharstr()
482-
call assert_equal(nr2char(kc - 64), ch)
483-
catch /^Vim:Interrupt$/
484-
" ignore
485-
endtry
477+
if kc == 67
478+
continue
479+
endif
480+
call SendKeyGroup([modkey, kc])
481+
let ch = Getcharstr()
482+
call assert_equal(nr2char(kc - 64), ch)
483+
call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
484+
let ch = Getcharstr()
485+
call assert_equal(nr2char(kc - 64), ch)
486486
endfor
487487
endfor
488488

src/version.c

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

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
57,
707709
/**/
708710
56,
709711
/**/

0 commit comments

Comments
 (0)