diff options
author | Keith Seitz <keiths@redhat.com> | 2001-07-23 19:02:31 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2001-07-23 19:02:31 +0000 |
commit | 413eca6f968c5c6321e273b60b453423cf532d9e (patch) | |
tree | e63e1bf4e98bd3d2079f1fe0d7eef30600cd4907 /gdb/testsuite/lib | |
parent | 9f20bf26f8399f4edb5ea771ac571ed64cbce865 (diff) | |
download | gdb-413eca6f968c5c6321e273b60b453423cf532d9e.zip gdb-413eca6f968c5c6321e273b60b453423cf532d9e.tar.gz gdb-413eca6f968c5c6321e273b60b453423cf532d9e.tar.bz2 |
* lib/gdb.exp (_gdbtk_xvfb_init): If GDB_DISPLAY is
the empty string, do not run the tests.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 73df80f..4949083 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1698,14 +1698,19 @@ proc gdbtk_start {test} { # Start xvfb when using it. # The precedence is: -# 1. If GDB_DISPLAY is set, use it +# 1. If GDB_DISPLAY is set (and not ""), use it # 2. If Xvfb exists, use it (not on cygwin) # 3. Skip tests proc _gdbtk_xvfb_init {} { global env spawn_id _xvfb_spawn_id _using_windows if {[info exists env(GDB_DISPLAY)]} { - set env(DISPLAY) $env(GDB_DISPLAY) + if {$env(GDB_DISPLAY) != ""} { + set env(DISPLAY) $env(GDB_DISPLAY) + } else { + # Suppress tests + return 0 + } } elseif {!$_using_windows && [which Xvfb] != 0} { set screen ":[getpid]" set pid [spawn Xvfb $screen] |