This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFC: gdbtk testsuite patch: Xvfb $DISPLAY setting


Hi -

I find I would need the following patch also, in addition to the
"Xvfb :NNN -ac" one from Friday.  Can someone see a problem with
setting the test connection to DISPLAY=localhost:NNN instead of
DISPLAY=:NNN?  Is this worth more elaborate run-time testing?


2001-09-16  Frank Ch. Eigler  <fche@redhat.com>

	* lib/insight-support.exp (_gdbtk_xvfb_init): Set DISPLAY
	to localhost:NNN instead of :NNN, in case Xvfb is listening
	only on TCP.

Index: gdb/testsuite/lib/insight-support.exp
===================================================================
diff -u -p -r1.2 gdb/testsuite/lib/insight-support.exp
--- insight-support.exp	2001/09/15 17:11:29	1.2
+++ insight-support.exp	2001/09/16 22:29:15
@@ -118,7 +118,7 @@ proc _gdbtk_xvfb_init {} {
     set screen ":[getpid]"
     set pid [spawn  Xvfb $screen -ac]
     set _xvfb_spawn_id $spawn_id
-    set env(DISPLAY) $screen
+    set env(DISPLAY) localhost$screen
   } else {
     # No Xvfb found -- skip test
     return 0


- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]