]> granicus.if.org Git - vim/commitdiff
patch 8.0.1326: largefile test fails on CI, glob test on MS-Windows v8.0.1326
authorBram Moolenaar <Bram@vim.org>
Tue, 21 Nov 2017 10:43:08 +0000 (11:43 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Nov 2017 10:43:08 +0000 (11:43 +0100)
Problem:    Largefile test fails on CI, glob test on MS-Windows.
Solution:   Remove largefile test from list of all tests. Don't run
            Test_glob() on non-unix systems.  More cleanup. (Yegappan
            Lakshmanan, closes #2354)

src/testdir/Make_all.mak
src/testdir/test_escaped_glob.vim
src/testdir/test_plus_arg_edit.vim
src/version.c

index d1ff7aab367a2b8921b47970d91f3fe5b5994eb1..6e3356491be7449d2f3548118bc3e06416bee932 100644 (file)
@@ -67,6 +67,7 @@ SCRIPTS_GUI =
 
 # Tests using runtest.vim
 # Keep test_alot*.res as the last one, sort the others.
+# test_largefile.res is omitted, it uses too much resources to run on CI.
 NEW_TESTS = test_arabic.res \
            test_arglist.res \
            test_assert.res \
@@ -122,7 +123,6 @@ NEW_TESTS = test_arabic.res \
            test_job_fails.res \
            test_json.res \
            test_langmap.res \
-           test_largefile.res \
            test_let.res \
            test_lineending.res \
            test_listchars.res \
index 6eca8bc713b15568206615ad7b86241a6e15ad96..b91c6e742493f9227294b57bb709d8f5bd3b713b 100644 (file)
@@ -9,12 +9,19 @@ function SetUp()
 endfunction
 
 function Test_glob()
+  if !has('unix')
+    " This test fails on Windows because of the special characters in the
+    " filenames. Disable the test on non-Unix systems for now.
+    return
+  endif
   call assert_equal("", glob('Xxx\{'))
   call assert_equal("", glob('Xxx\$'))
   w! Xxx{
   w! Xxx\$
   call assert_equal("Xxx{", glob('Xxx\{'))
   call assert_equal("Xxx$", glob('Xxx\$'))
+  call delete('Xxx{')
+  call delete('Xxx$')
 endfunction
 
 function Test_globpath()
index 0907550bfa6a9a31444dce31e19ed35fb3a4dfdc..71dbea199174a3cdbc58c344383a6dbca20261b6 100644 (file)
@@ -5,4 +5,6 @@ function Test_edit()
   edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w
   call assert_equal(["fooPIPEbar"], readfile("Xfile1"))
   call assert_equal(["fooSLASHbar"], readfile("Xfile2"))
+  call delete('Xfile1')
+  call delete('Xfile2')
 endfunction
index c90db15898f1579a2c83397f17b039b1fec71f91..7a7358d3e998968146a0826a9cac11068e0f58b2 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1326,
 /**/
     1325,
 /**/