Hi Bram,

How to reproduce:
$ cd src
$ make distclean
$ ./configure --enable-fail-if-missing --enable-gui=gnome2
$ make
$ make test_startup

Get stuck with the following output in terminal.
-------8<--------
VIMRUNTIME=../../runtime; export VIMRUNTIME;  ../vim -f  -u unix.vim -U NONE 
--noplugin --not-a-term -U NONE -S runtest.vim test_startup.vim
3 files to edit
2 files to edit
4 files to edit
E233: cannot open display
Press ENTER or type command to continue
-------8<--------

Problem occurs in this environment.

  has('gui') && !has('gui_running')


I wrote a patch.
include this please!

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

-- 
-- 
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.
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim
index 0522ecc..363d228 100644
--- a/src/testdir/test_startup.vim
+++ b/src/testdir/test_startup.vim
@@ -66,6 +66,9 @@ func Test_help_arg()
     " this doesn't work with gvim on MS-Windows
     return
   endif
+  if has('unix') && (!has('gui') || ($DISPLAY == "" && !has('gui_running')))
+    return
+  endif
   if RunVim([], [], '--help >Xtestout')
     let lines = readfile('Xtestout')
     call assert_true(len(lines) > 20)

Raspunde prin e-mail lui