public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [committed] Require gdb-add-index for gdb-add-index.sh
@ 2019-01-01  0:00 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz, jakub

Hi,

On systems without gdb-add-index, we run into:
...
gdb-add-index.sh: 3: gdb-add-index.sh: gdb-add-index: not found
FAIL: /home/vries/dwz/dwz.git/testsuite/dwz.tests/gdb-add-index.sh
...

Fix this by requiring gdb-add-index for gdb-add-index.sh.

Committed to trunk.

Thanks,
- Tom

Require gdb-add-index for gdb-add-index.sh

2019-07-09  Tom de Vries  <tdevries@suse.de>

	* testsuite/dwz.tests/dwz-tests.exp: Require gdb-add-index for
	gdb-add-index.sh.

---
 testsuite/dwz.tests/dwz-tests.exp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/testsuite/dwz.tests/dwz-tests.exp b/testsuite/dwz.tests/dwz-tests.exp
index 9dda522..ce7343f 100644
--- a/testsuite/dwz.tests/dwz-tests.exp
+++ b/testsuite/dwz.tests/dwz-tests.exp
@@ -65,6 +65,12 @@ foreach test $tests {
 	    continue
 	}
     }
+    if { $basename == "gdb-add-index.sh" } {
+        if { [catch { exec which gdb-add-index } ] } {
+            unsupported "$test"
+            continue
+        }
+    }
 
     set unsupported 0
     foreach required_exec $required_execs {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-09 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [committed] Require gdb-add-index for gdb-add-index.sh Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).