]> granicus.if.org Git - vim/commitdiff
patch 8.2.3157: crypt test may fail on MS-Windows v8.2.3157
authorChristian Brabandt <cb@256bit.org>
Tue, 13 Jul 2021 17:09:12 +0000 (19:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 13 Jul 2021 17:09:12 +0000 (19:09 +0200)
Problem:    Crypt test may fail on MS-Windows.
Solution:   Ignore "[unix]" in the file message. (Christian Brabandt,
            closes #8561)

src/testdir/test_crypt.vim
src/version.c

index a18dfa3d17173c28cefb048fe119231381925aaf..883c899cfeb629252354941935b3be8330173eea 100644 (file)
@@ -162,8 +162,8 @@ func Test_uncrypt_xchacha20_2()
   call assert_equal(range(1, 4000)->map( {_, v -> string(v)}), getline(1,'$'))
   set key=
   w! ++ff=unix
-  " enryption removed
-  call assert_match('"Xcrypt_sodium.txt" 4000L, 18893B written', execute(':message'))
+  " enryption removed (on MS-Windows the .* matches [unix])
+  call assert_match('"Xcrypt_sodium.txt".*4000L, 18893B written', execute(':message'))
   bw!
   call delete('Xcrypt_sodium.txt')
   set cryptmethod&vim
index c2314cdf2c23d3a2e839eb09e9aeb00e8100f688..ace5a9d83a8baeb9eb7f306c328193a4af3a10e3 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3157,
 /**/
     3156,
 /**/