This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/2] testsuite/subst: Add tests for printing matches
- From: "Brad Mouring" <bmouring at ni dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>, Brad Mouring <brad dot mouring at ni dot com>
- Date: Wed, 28 May 2014 17:41:41 -0500
- Subject: [PATCH 1/2] testsuite/subst: Add tests for printing matches
- Authentication-results: sourceware.org; auth=none
- References: <20140528161531 dot GA4289 at adacore dot com> <1401316902-12320-1-git-send-email-brad dot mouring at ni dot com>
The existing tests for printing matching substitution rules was
insufficient as it was not testing that matching rules would actually
be printed when checking with the "show substitute-path" command
Signed-off-by: Brad Mouring <brad.mouring@ni.com>
---
gdb/testsuite/gdb.base/subst.exp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gdb/testsuite/gdb.base/subst.exp b/gdb/testsuite/gdb.base/subst.exp
index e132809..e99735b 100644
--- a/gdb/testsuite/gdb.base/subst.exp
+++ b/gdb/testsuite/gdb.base/subst.exp
@@ -95,6 +95,14 @@ gdb_test "show substitute-path depuis" \
"Source path substitution rule matching `depuis':\r\n +`depuis' -> `vers'." \
"show substitute-path depuis, after all paths added"
+gdb_test "show substitute-path from/path" \
+ "Source path substitution rule matching `from/path':\r\n +`from' -> `to'." \
+ "show substitute-path from/path, after all paths added"
+
+gdb_test "show substitute-path from_a_bad_path" \
+ "Source path substitution rule matching `from_a_bad_path':" \
+ "show substitute-path from_a_bad_path, after all paths added"
+
gdb_test "show substitute-path garbage" \
"Source path substitution rule matching `garbage':" \
"show substitute-path garbage, after all paths added"
--
1.8.3-rc3