comparison 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
comparison
equal deleted inserted replaced
15656:a54d64695e6f 15657:c2c4fb3379e8
428 if has('win32') 428 if has('win32')
429 " Just in case: check that the system has an Administrator account. 429 " Just in case: check that the system has an Administrator account.
430 let names = system('net user') 430 let names = system('net user')
431 if names =~ 'Administrator' 431 if names =~ 'Administrator'
432 " Trying completion of :e ~A should complete to Administrator. 432 " Trying completion of :e ~A should complete to Administrator.
433 " There could be other names starting with "A" before Administrator.
433 call feedkeys(':e ~A' . "\<c-a>\<c-B>\"\<cr>", 'tx') 434 call feedkeys(':e ~A' . "\<c-a>\<c-B>\"\<cr>", 'tx')
434 call assert_match('^"e \~Administrator', @:) 435 call assert_match('^"e \~.*Administrator', @:)
435 endif 436 endif
436 endif 437 endif
437 endfunc 438 endfunc
438 439
439 funct Test_cmdline_complete_languages() 440 funct Test_cmdline_complete_languages()