diff src/testdir/test_terminal.vim @ 18070:873068e19e1f v8.1.2030

patch 8.1.2030: tests fail when build with normal features and terminal Commit: https://github.com/vim/vim/commit/997d42427eaab889058eb047e08d55de9e4a968a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 14 21:23:40 2019 +0200 patch 8.1.2030: tests fail when build with normal features and terminal Problem: Tests fail when build with normal features and terminal. (Dominique Pelle) Solution: Disable tests that won't work. (closes #4932)
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Sep 2019 21:30:03 +0200
parents 060e1b1220c6
children 5a5e9eed6029
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -1684,12 +1684,14 @@ func Test_terminal_termwinkey()
   call feedkeys("\<C-W>w", 'tx')
   call assert_equal(termwin, win_getid())
 
-  set langmap=xjyk
-  call feedkeys("\<C-L>x", 'tx')
-  call assert_equal(thiswin, win_getid())
-  call feedkeys("\<C-W>y", 'tx')
-  call assert_equal(termwin, win_getid())
-  set langmap=
+  if has('langmap')
+    set langmap=xjyk
+    call feedkeys("\<C-L>x", 'tx')
+    call assert_equal(thiswin, win_getid())
+    call feedkeys("\<C-W>y", 'tx')
+    call assert_equal(termwin, win_getid())
+    set langmap=
+  endif
 
   call feedkeys("\<C-L>gt", "xt")
   call assert_equal(3, tabpagenr())