summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-01-25 22:28:37 +0100
committerChristian Brabandt <cb@256bit.org>2024-01-25 22:28:37 +0100
commit6a02eb073e1c801a5a92837d4b2d44b6a80afddd (patch)
tree05d0ec0422281c4f63013affe40379d78ef061a3
parent6638ec8afa9875ff565020536954c424d5f6f27d (diff)
patch 9.1.0057: MS-Windows: Key event test still failsv9.1.0057
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>
-rw-r--r--src/testdir/test_mswin_event.vim22
-rw-r--r--src/version.c2
2 files changed, 13 insertions, 11 deletions
diff --git a/src/testdir/test_mswin_event.vim b/src/testdir/test_mswin_event.vim
index 950fc61ea1..3b7b3c7d5e 100644
--- a/src/testdir/test_mswin_event.vim
+++ b/src/testdir/test_mswin_event.vim
@@ -470,19 +470,19 @@ func Test_mswin_event_character_keys()
" Test for <Ctrl-A> to <Ctrl-Z> keys
" Expect the unicode characters 0x01 to 0x1A
-" Note: May cause an Interrupt to be triggered for Ctrl-C
+" Note: Skip C because it triggers an Interrupt (CTRL-C)
+" which causes a test failure
for modkey in [s:VK.CONTROL, s:VK.LCONTROL, s:VK.RCONTROL]
for kc in range(65, 90)
- try
- call SendKeyGroup([modkey, kc])
- let ch = Getcharstr()
- call assert_equal(nr2char(kc - 64), ch)
- call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
- let ch = Getcharstr()
- call assert_equal(nr2char(kc - 64), ch)
- catch /^Vim:Interrupt$/
- " ignore
- endtry
+ if kc == 67
+ continue
+ endif
+ call SendKeyGroup([modkey, kc])
+ let ch = Getcharstr()
+ call assert_equal(nr2char(kc - 64), ch)
+ call SendKeyWithModifiers(kc, s:MOD_MASK_CTRL)
+ let ch = Getcharstr()
+ call assert_equal(nr2char(kc - 64), ch)
endfor
endfor
diff --git a/src/version.c b/src/version.c
index d06e7e99a5..8f13f3f18d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 57,
+/**/
56,
/**/
55,