aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-06-09 13:34:57 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-06-09 13:34:57 +0100
commit417d2514ef183c2beacd932651c6684743130ab6 (patch)
tree9820acd988ca3f66274112f73f4cf8b0e83f3108 /gdb/testsuite/gdb.base
parentd21691eaa7e851a7600ce1f616c5289b7c69055b (diff)
downloadgdb-417d2514ef183c2beacd932651c6684743130ab6.zip
gdb-417d2514ef183c2beacd932651c6684743130ab6.tar.gz
gdb-417d2514ef183c2beacd932651c6684743130ab6.tar.bz2
gdb/testsuite: resolve duplicate test name in gnu_vector.exp
While testing on AArch64 I spotted a duplicate test name in the gdb.base/gnu_vector.exp test. This commit adds a 'with_test_prefix' to resolve the duplicate. While I was in the area I updated a 'gdb_test_multiple' call to make use of $gdb_test_name. There should be no change in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/gnu_vector.exp20
1 files changed, 11 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base/gnu_vector.exp
index b47be65..796d9e9 100644
--- a/gdb/testsuite/gdb.base/gnu_vector.exp
+++ b/gdb/testsuite/gdb.base/gnu_vector.exp
@@ -222,16 +222,18 @@ gdb_test "print add_structvecs(i2, (struct just_int2)\{2*i2\}, (struct two_int2)
gdb_test "print add_singlevecs((char1) \{6\}, (int1) \{12\}, (double1) \{24\})" "= \\{42\\}" \
"call add_singlevecs"
-# Test "finish" from vector-valued function.
gdb_breakpoint "add_some_intvecs"
-gdb_continue "add_some_intvecs"
-set test "finish shows vector return value"
-gdb_test_multiple "finish" $test {
- -re "Value returned is .* = \\{10, 20, 48, 72\\}.*$gdb_prompt $" {
- pass $test
- }
- -re "Value returned has type: .* Cannot determine contents.*$gdb_prompt $" {
- kfail "gdb/8549" $test
+
+# Test "finish" from vector-valued function.
+with_test_prefix "finish from vector function" {
+ gdb_continue "add_some_intvecs"
+ gdb_test_multiple "finish" "shows vector return value" {
+ -re "Value returned is .* = \\{10, 20, 48, 72\\}.*$gdb_prompt $" {
+ pass $gdb_test_name
+ }
+ -re "Value returned has type: .* Cannot determine contents.*$gdb_prompt $" {
+ kfail "gdb/8549" $gdb_test_name
+ }
}
}