diff mbox

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

Message ID 3929066e9f16bdba902f3fc3996546422b5e5e88.1448411122.git.andrew.burgess@embecosm.com
State New
Headers show

Commit Message

Andrew Burgess Nov. 25, 2015, 12:34 a.m. UTC
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(-)

Comments

Pedro Alves Nov. 26, 2015, 12:37 p.m. UTC | #1
On 11/25/2015 12:34 AM, Andrew Burgess wrote:
> gdb/testsuite/ChangeLog:
> 
> 	* gdb.base/list.exp (test_list): Make test names unique.

OK.

Thanks,
Pedro Alves
diff mbox

Patch

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]