From: Luis Machado <lgustavo@codesourcery.com>
To: "'gdb-patches@sourceware.org'" <gdb-patches@sourceware.org>
Subject: [PATCH, testsuite] Fix subst.exp failure when GDB is configured with --with-relocated-sources
Date: Wed, 19 Jun 2013 20:14:00 -0000 [thread overview]
Message-ID: <51C209FC.3040206@codesourcery.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
Hi,
The gdb.base/subst.exp test assumes GDB starts with no default
substitution rules, which is not true if GDB has been configured with
--with-relocated-sources. In that case we start with a default rule,
causing the first test (checking that there are no rules) to fail.
This patch clears any default substitution rules that may exist prior to
doing all the other tests.
OK?
[-- Attachment #2: subst.diff --]
[-- Type: text/x-patch, Size: 829 bytes --]
2013-06-19 Luis Machado <lgustavo@codesourcery.com>
* gdb.base/subst.exp: Delete default rules before further
tests.
diff --git a/gdb/testsuite/gdb.base/subst.exp b/gdb/testsuite/gdb.base/subst.exp
index e339557..50f6620 100644
--- a/gdb/testsuite/gdb.base/subst.exp
+++ b/gdb/testsuite/gdb.base/subst.exp
@@ -23,6 +23,12 @@ gdb_reinitialize_dir $srcdir/$subdir
gdb_test_no_output "set confirm off" \
"deactivate GDB's confirmation interface"
+# Clear any substitution rules that are available by default due
+# to GDB being configured with --with-relocated-sources.
+
+gdb_test_no_output "unset substitute-path" \
+ "remove default substitution rules"
+
gdb_test "show substitute-path" \
"List of all source path substitution rules:" \
"show substitute-path, no rule entered yet"
next reply other threads:[~2013-06-19 19:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 20:14 Luis Machado [this message]
2013-06-19 20:37 ` Pedro Alves
2013-06-19 21:04 ` Luis Machado
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=51C209FC.3040206@codesourcery.com \
--to=lgustavo@codesourcery.com \
--cc=gdb-patches@sourceware.org \
/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