]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0714: tests: GuiEnter_Turkish test may fail v9.1.0714
authorKen Takata <kentkt@csc.jp>
Tue, 3 Sep 2024 21:01:55 +0000 (23:01 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 3 Sep 2024 21:01:55 +0000 (23:01 +0200)
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 <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_autocmd.vim
src/version.c

index a863a238dab7bd8fc680eb4841385641b0a9d35d..fc6f377cf50555381c9184b34bc397315ce0000c 100644 (file)
@@ -3707,7 +3707,7 @@ func Test_autocmd_with_block()
       }
   augroup END
 
-  let expected = "\n--- Autocommands ---\nblock_testing  BufRead\n    *.xml     {^@            setlocal matchpairs+=<:>^@            /<start^@          }"
+  let expected = gettext("\n--- Autocommands ---") .. "\nblock_testing  BufRead\n    *.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("\n--- Autocommands ---", result)
+    call assert_equal(gettext("\n--- Autocommands ---"), result)
     let result = execute(':au GUIENTER')
-    call assert_equal("\n--- Autocommands ---", result)
+    call assert_equal(gettext("\n--- Autocommands ---"), result)
     let result = execute(':au guienter')
-    call assert_equal("\n--- Autocommands ---", result)
+    call assert_equal(gettext("\n--- Autocommands ---"), result)
     exe ":lang" lng
   catch /E197:/
     " can't use Turkish locale
index f53da011701bc4511b5b17e73765ddad4262fdcf..b35a89e2e37747cead0cdd7575912e0b0486d8bb 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    714,
 /**/
     713,
 /**/