diff src/testdir/test_cmdline.vim @ 15657:c2c4fb3379e8 v8.1.0836

patch 8.1.0836: user completion test can fail on MS-Windows commit https://github.com/vim/vim/commit/346d2a359a6874be6cdb683a8d190ba13aa10e94 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 27 20:43:41 2019 +0100 patch 8.1.0836: user completion test can fail on MS-Windows Problem: User completion test can fail on MS-Windows. Solution: Allow for other names befor "Administrator".
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Jan 2019 20:45:05 +0100
parents 2dcaa860e3fc
children dd15295b94fe
line wrap: on
line diff
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -430,8 +430,9 @@ func Test_cmdline_complete_user_names()
     let names = system('net user')
     if names =~ 'Administrator'
       " Trying completion of  :e ~A  should complete to Administrator.
+      " There could be other names starting with "A" before Administrator.
       call feedkeys(':e ~A' . "\<c-a>\<c-B>\"\<cr>", 'tx')
-      call assert_match('^"e \~Administrator', @:)
+      call assert_match('^"e \~.*Administrator', @:)
     endif
   endif
 endfunc