public inbox for
 help / color / mirror / Atom feed
From: Mark Wielaard <>
Cc: Mark Wielaard <>
Subject: [PATCH] Redirect stder in test
Date: Sat,  2 Jul 2022 01:11:00 +0200	[thread overview]
Message-ID: <> (raw)

gdb-add-index might produce an error message on stderr when trying to
disable debuginfod support. Any message to stderr makes the testcase
fail. This looks like a gdb bug:
But it is easy to workaround by redirecting stderr to stdout.
 testsuite/dwz.tests/ | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testsuite/dwz.tests/ b/testsuite/dwz.tests/
index 5a91b23..3095efb 100644
--- a/testsuite/dwz.tests/
+++ b/testsuite/dwz.tests/
@@ -1,6 +1,8 @@
 cp $execs/hello 1
-gdb-add-index 1
+# Redirect gdb-add-index stderr to stdout.
+gdb-add-index 1 2>&1
 readelf -S 1 | grep -q '\.gdb_index'

             reply	other threads:[~2022-07-01 23:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-01 23:11 Mark Wielaard [this message]
2022-07-04 13:24 ` Mark Wielaard

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:

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

  git send-email \ \ \ \

* 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).