Dominique wrote:

> Bram Moolenaar <[email protected]> wrote:
> 
> > Patch 8.1.0003
> > Problem:    The :compiler command is not tested.
> > Solution:   Add a test. (Dominique Pelle, closes #2930)
> > Files:      src/Makefile, src/testdir/test_alot.vim,
> >              src/testdir/test_compiler.vim
> 
> Tests fail in CI somehow despite passing locally for me
> when submitting the PR.  The PR was merged before
> all tests had a chance to run.
> 
> This should fix it I hope.  I submitted in my branch
> but CI does not start because the PR was closed I think.
> 
> diff --git a/src/testdir/test_compiler.vim b/src/testdir/test_compiler.vim
> index fd3510d60..902276d22 100644
> --- a/src/testdir/test_compiler.vim
> +++ b/src/testdir/test_compiler.vim
> @@ -19,9 +19,8 @@ func Test_compiler()
>     w!
>     call feedkeys(":make\<CR>\<CR>", 'tx')
>     let a=execute('clist')
> -  call assert_equal("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" "
> -  \ .               "requires explicit package name "
> -  \ .               "(did you forget to declare \"my $foo\"?)", a)
> +  call assert_match("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" "
> +  \ .               "requires explicit package name", a)
> 
>     call delete('Xfoo.pl')
>     bw!

Probably depends on the version of Perl.  Anyway, I'll include the
patch, then it hopefully works everywhere.

-- 
People who want to share their religious views with you
almost never want you to share yours with them.

 /// 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.

Raspunde prin e-mail lui