]> granicus.if.org Git - vim/commitdiff
patch 8.2.1240: GUI tests sometimes fail because of translations v8.2.1240
authorBram Moolenaar <Bram@vim.org>
Sat, 18 Jul 2020 20:03:11 +0000 (22:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 18 Jul 2020 20:03:11 +0000 (22:03 +0200)
Problem:    GUI tests sometimes fail because of translations.
Solution:   Reload the menus without translation. (Taro Muraoka, closes #6486)

src/testdir/runtest.vim
src/version.c

index 3f412c342b88f6615d82878fe7b3808ae12c5d2b..60805f1318fb7e09bf1bdcf1a686545f225494c0 100644 (file)
@@ -105,6 +105,13 @@ set nomore
 " Output all messages in English.
 lang mess C
 
+" suppress menu translation
+if has('gui_running') && exists('did_install_default_menus')
+  source $VIMRUNTIME/delmenu.vim
+  set langmenu=none
+  source $VIMRUNTIME/menu.vim
+endif
+
 " Always use forward slashes.
 set shellslash
 
index d659c7388703e3d1208c20508a5659492d69f9d5..1b16ffb3e8a35c54bc9f09a5c5a6b685314e180a 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1240,
 /**/
     1239,
 /**/