Test failure building 8.2.3104

35 views
Skip to first unread message

Elimar Riesebieter

unread,
Jul 4, 2021, 1:39:51 PM7/4/21
to vim...@googlegroups.com
Hi all,

Environment:
amd64
tmux
clang-12

Failures:
From test_vim9_builtin.vim:
Found errors in Test_remote_foreground():
command line..script /source/vim/vim-8.2.3104/src/vim-gtk3/testdir/runtest.vim[473]..function RunTheTest[44]..Test_remote_foreground line 5: Expected 'E241:' but got 'E240: No connection to the X server': remote_foreground("NonExistingServer")

Thanks
Elimar
--
Experience is something you don't get until
just after you need it!

Bram Moolenaar

unread,
Jul 4, 2021, 5:30:09 PM7/4/21
to vim...@googlegroups.com, Elimar Riesebieter

Elimar Riesebieter wrote:

> Environment:
> amd64
> tmux
> clang-12
>
> Failures:
> From test_vim9_builtin.vim:
> Found errors in Test_remote_foreground():
> command line..script /source/vim/vim-8.2.3104/src/vim-gtk3/testdir/runtest.vim[473]..function RunTheTest[44]..Test_remote_foreground line 5: Expected 'E241:' but got 'E240: No connection to the X server': remote_foreground("NonExistingServer")

I can't think of a recent change that could have caused this.
Perhaps it's a flaky test failure?

--
From "know your smileys":
:q vi user saying, "How do I get out of this damn emacs editor?"

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Christian Brabandt

unread,
Jul 5, 2021, 3:43:11 AM7/5/21
to vim...@googlegroups.com

On So, 04 Jul 2021, Bram Moolenaar wrote:

>
> Elimar Riesebieter wrote:
>
> > Environment:
> > amd64
> > tmux
> > clang-12
> >
> > Failures:
> > From test_vim9_builtin.vim:
> > Found errors in Test_remote_foreground():
> > command line..script /source/vim/vim-8.2.3104/src/vim-gtk3/testdir/runtest.vim[473]..function RunTheTest[44]..Test_remote_foreground line 5: Expected 'E241:' but got 'E240: No connection to the X server': remote_foreground("NonExistingServer")
>
> I can't think of a recent change that could have caused this.
> Perhaps it's a flaky test failure?

I suppose we need to have this change:

diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index d6bfe004a..97ab6e5cf 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -209,6 +209,14 @@ func CheckNotAsan()
endif
endfunc

+" Command to Check for environment variable
+command -nargs=1 CheckEnv call CheckEnv(<f-args>)
+func CheckEnv(name)
+ if !exists('$' .. a:name)
+ throw 'Skipped: Environment variable ' .. a:name .. ' does not exists'
+ endif
+endfunc
+
" Command to check for satisfying any of the conditions.
" e.g. CheckAnyOf Feature:bsd Feature:sun Linux
command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>)
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim
index 38bd8271c..3a952ee79 100644
--- a/src/testdir/test_vim9_builtin.vim
+++ b/src/testdir/test_vim9_builtin.vim
@@ -1416,6 +1416,7 @@ def Test_remote_foreground()
# remote_foreground() doesn't fail on MS-Windows
CheckNotMSWindows
CheckDefFailure(['remote_foreground(10)'], 'E1013: Argument 1: type mismatch, expected string but got number')
+ CheckEnv DISPLAY
assert_fails('remote_foreground("NonExistingServer")', 'E241:')
enddef


Best,
Christian
--
Elektrizität ist: Morgens mit Spannung aufstehen, mit Widerstand zur
Schule gehen, in allen Stunden gegen den Strom fließen, geladen nach
Hause kommen und dann noch vom Vater eine gewischt kriegen!

Elimar Riesebieter

unread,
Jul 5, 2021, 5:30:40 AM7/5/21
to vim...@googlegroups.com
* Christian Brabandt <cbl...@256bit.org> [2021-07-05 09:43 +0200]:
This patch fixes the issue for me!

Thanks
Elimar
--
Do you smell something burning or is it me?

Reply all
Reply to author
Forward
0 new messages