]> granicus.if.org Git - vim/commitdiff
patch 8.1.2118: termcodes test fails when $TERM is "dumb" v8.1.2118
authorBram Moolenaar <Bram@vim.org>
Sun, 6 Oct 2019 10:02:15 +0000 (12:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 Oct 2019 10:02:15 +0000 (12:02 +0200)
Problem:    Termcodes test fails when $TERM is "dumb".
Solution:   Skip the test. (James McCoy, closes #5019)

src/testdir/test_termcodes.vim
src/version.c

index 96bbdbb44fa2fd3ca402de4c1f7a2c5da31eef8f..6174723173d05b8b10d7af3236813bba4dc9d749 100644 (file)
@@ -798,7 +798,11 @@ func Test_xx_term_style_response()
 endfunc
 
 func Test_get_termcode()
-  let k1 = &t_k1
+  try
+    let k1 = &t_k1
+  catch /E113/
+    throw 'Skipped: Unable to query termcodes'
+  endtry
   set t_k1=
   set t_k1&
   call assert_equal(k1, &t_k1)
index fa4930b7ccef0ce48afa6e18cc0483f96868e6f4..0fa8440e356f4e2f995c5d49480ca859985b814a 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2118,
 /**/
     2117,
 /**/