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
+ }
}
}