public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: dwz@sourceware.org, jakub@redhat.com
Subject: [committed] Require gdb-add-index for gdb-add-index.sh
Date: Tue, 01 Jan 2019 00:00:00 -0000	[thread overview]
Message-ID: <20190709202433.GA12227@delia> (raw)

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 {

                 reply	other threads:[~2019-07-09 20:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190709202433.GA12227@delia \
    --to=tdevries@suse.de \
    --cc=dwz@sourceware.org \
    --cc=jakub@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).