gdb: Make test names unique in list.exp.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 25 Nov 2015 00:11:43 +0000 (00:11 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 11 Dec 2015 23:04:51 +0000 (23:04 +0000)
gdb/testsuite/ChangeLog:

* gdb.base/list.exp (test_list): Make test names unique.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/list.exp

index 7e9aead0c74cf26982bb07b1488011f6d42fcc31..b1902e027241f0fc082889dbdf380862ac61e5ee 100644 (file)
@@ -1,3 +1,7 @@
+2015-12-11  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.base/list.exp (test_list): Make test names unique.
+
 2015-12-11  Yao Qi  <yao.qi@linaro.org>
 
        * gdb.base/coremaker2.c: Remove.
index 2aea9a3b9b9287faa695074fbba57cda03526e72..84ae251bfe41fc215bea2cc081bab5786c367f24 100644 (file)
@@ -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]