gdb: Make test names unique in list.exp.

gdb/testsuite/ChangeLog:

	* gdb.base/list.exp (test_list): Make test names unique.
This commit is contained in:
Andrew Burgess 2015-11-25 00:11:43 +00:00
parent 1a48ce7677
commit 5c000dff26
2 changed files with 10 additions and 2 deletions

View 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.

View 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]