1
0
forked from aniani/vim

patch 9.0.0295: GUI drop files test sometimes fails

Problem:    GUI drop files test sometimes fails.
Solution:   Mark the test as flaky.
This commit is contained in:
Bram Moolenaar
2022-08-28 13:38:43 +01:00
parent 43568648df
commit 00d4ceecca
2 changed files with 5 additions and 0 deletions

View File

@@ -1430,9 +1430,12 @@ func Test_gui_drop_files()
%bw! %bw!
%argdelete %argdelete
call delete('Xdir1', 'rf') call delete('Xdir1', 'rf')
" drop files in the command line. The GUI drop files adds the file names to " drop files in the command line. The GUI drop files adds the file names to
" the low level input buffer. So need to use a cmdline map and feedkeys() " the low level input buffer. So need to use a cmdline map and feedkeys()
" with 'Lx!' to process it in this function itself. " with 'Lx!' to process it in this function itself.
" This sometimes fails, e.g. when using valgrind.
let g:test_is_flaky = 1
cnoremap <expr> <buffer> <F4> DropFilesInCmdLine() cnoremap <expr> <buffer> <F4> DropFilesInCmdLine()
call feedkeys(":\"\<F4>\<CR>", 'xt') call feedkeys(":\"\<F4>\<CR>", 'xt')
call feedkeys('k', 'Lx!') call feedkeys('k', 'Lx!')

View File

@@ -707,6 +707,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
295,
/**/ /**/
294, 294,
/**/ /**/