[PATCH 4/7] gdb: Make test names unique in list.exp.

Andrew Burgess
2015-11-25T00:34:48Z

gdb/testsuite/ChangeLog:

* gdb.base/list.exp (test_list): Make test names unique.
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.base/list.exp | 8 ++++++--
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index a00920f..60bd923 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-24 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.base/list.exp (test_list): Make test names unique.
+
2015-11-23 Simon Marchi <simon.marchi@ericsson.com>

* gdb.trace/actions.c: Include trace-common.h.
diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp
index 2aea9a3..84ae251 100644
--- a/gdb/testsuite/gdb.base/list.exp
+++ b/gdb/testsuite/gdb.base/list.exp
@@ -578,9 +578,13 @@ proc test_list {command listsize1 listsize2 linerange1 linerange2} {
# Test changing the listsize both before nexting, and after
# stopping, but before listing. Only the second listsize
# change should affect which lines are listed.
- gdb_test_no_output "set listsize $listsize1"
+ with_test_prefix "before next" {
+ gdb_test_no_output "set listsize $listsize1"
+ }
gdb_test "next" "foo \\(.*"
- gdb_test_no_output "set listsize $listsize2"
+ with_test_prefix "after next" {
+ gdb_test_no_output "set listsize $listsize2"
+ }

set pattern1 [build_pattern $linerange1]
set pattern2 [build_pattern $linerange2]
--
2.5.1