diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-11-25 00:11:43 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-12-11 23:04:51 +0000 |
commit | 5c000dff26b7c5159ca1a6d562e7ab50656f4b73 (patch) | |
tree | b920586c50ab37296e256aad8c5eeb8b81dc17fe | |
parent | 1a48ce76774633e9e27dd245ba275a714b2b339f (diff) | |
download | gdb-5c000dff26b7c5159ca1a6d562e7ab50656f4b73.zip gdb-5c000dff26b7c5159ca1a6d562e7ab50656f4b73.tar.gz gdb-5c000dff26b7c5159ca1a6d562e7ab50656f4b73.tar.bz2 |
gdb: Make test names unique in list.exp.
gdb/testsuite/ChangeLog:
* gdb.base/list.exp (test_list): Make test names unique.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | 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 7e9aead..b1902e0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. 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] |