Commit: patch 9.1.0714: tests: GuiEnter_Turkish test may fail

2 views
Skip to first unread message

Christian Brabandt

unread,
Sep 3, 2024, 5:15:12 PM9/3/24
to vim...@googlegroups.com
patch 9.1.0714: tests: GuiEnter_Turkish test may fail

Commit: https://github.com/vim/vim/commit/eccc92792ae45fd706b7d8958fd6c23e0e194161
Author: Ken Takata <ken...@csc.jp>
Date: Tue Sep 3 23:01:55 2024 +0200

patch 9.1.0714: tests: GuiEnter_Turkish test may fail

Problem: tests: GuiEnter_Turkish test may fail
Solution: the message will be translated if the Turkish message file is
installed. Use gettext() to get the expected message
(Ken Takata)

closes: #15615

Signed-off-by: Ken Takata <ken...@csc.jp>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index a863a238d..fc6f377cf 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -3707,7 +3707,7 @@ func Test_autocmd_with_block()
}
augroup END

- let expected = "
--- Autocommands ---
block_testing BufRead
*.xml {^@ setlocal matchpairs+=<:>^@ /<start^@ }"
+ let expected = gettext("
--- Autocommands ---") .. "
block_testing BufRead
*.xml {^@ setlocal matchpairs+=<:>^@ /<start^@ }"
call assert_equal(expected, execute('au BufReadPost *.xml'))

doautocmd CursorHold
@@ -4871,11 +4871,11 @@ func Test_GuiEnter_Turkish_locale()
let lng = v:lang
lang tr_TR.UTF-8
let result = execute(':au GuiEnter')
- call assert_equal("
--- Autocommands ---", result)
+ call assert_equal(gettext("
--- Autocommands ---"), result)
let result = execute(':au GUIENTER')
- call assert_equal("
--- Autocommands ---", result)
+ call assert_equal(gettext("
--- Autocommands ---"), result)
let result = execute(':au guienter')
- call assert_equal("
--- Autocommands ---", result)
+ call assert_equal(gettext("
--- Autocommands ---"), result)
exe ":lang" lng
catch /E197:/
" can't use Turkish locale
diff --git a/src/version.c b/src/version.c
index f53da0117..b35a89e2e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 714,
/**/
713,
/**/
Reply all
Reply to author
Forward
0 new messages