2017-03-02 4:41 GMT+09:00 Bram Moolenaar <[email protected]>:

>
> Kazunobu Kuriyama wrote:
>
> > 2017-03-02 2:30 GMT+09:00 Bram Moolenaar <[email protected]>:
> >
> > > Patch 8.0.0395 (after 8.0.0392)
> > > Problem:    Testing the + register fails with Motif.
> > > Solution:   Also ignore the "failed to create input context" error in
> the
> > >             second gvim.  Don't use msg() when it would result in a
> dialog.
> > > Files:      src/message.c, src/testdir/test_gui.vim,
> > > src/testdir/setup_gui.vim
> >
> > I confirm that this worked fine for the both GUIs.  Thank you.
>
> I still see the quoteplus test fail sometimes.  Not sure when it
> happens, might be a race condition.
>

I guess this happens when the clipboard fails to get synchronized with the
quoteplus register before the core part of the test starts.  If this is the
case, the attached patch could fix the problem.

The idea is to wrap "let @+ = test_call" by the loop asking the clipboard
for its current content in order to make sure that it has already had the
same string as test_call.  The loop consists of five trials with an
interval of 200 milliseconds.

Best regards
Kazunobu Kuriyama

>
> --
> He who laughs last, thinks slowest.
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net
>  \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/
> \\\
> \\\  an exciting new programming language -- http://www.Zimbu.org
> ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org
> ///
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: improve-quoteplus_test.patch
Description: Binary data

Raspunde prin e-mail lui