From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 55009383A606; Thu, 9 Jun 2022 12:45:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55009383A606 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: resolve duplicate test name in gnu_vector.exp X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: d21691eaa7e851a7600ce1f616c5289b7c69055b X-Git-Newrev: 417d2514ef183c2beacd932651c6684743130ab6 Message-Id: <20220609124523.55009383A606@sourceware.org> Date: Thu, 9 Jun 2022 12:45:23 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 12:45:23 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D417d2514ef18= 3c2beacd932651c6684743130ab6 commit 417d2514ef183c2beacd932651c6684743130ab6 Author: Andrew Burgess Date: Thu Jun 9 13:34:57 2022 +0100 gdb/testsuite: resolve duplicate test name in gnu_vector.exp =20 While testing on AArch64 I spotted a duplicate test name in the gdb.base/gnu_vector.exp test. =20 This commit adds a 'with_test_prefix' to resolve the duplicate. =20 While I was in the area I updated a 'gdb_test_multiple' call to make use of $gdb_test_name. =20 There should be no change in what is tested after this commit. Diff: --- gdb/testsuite/gdb.base/gnu_vector.exp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base= /gnu_vector.exp index b47be65cc1f..796d9e947e1 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) \{2= 4\})" "=3D \\{42\\}" \ "call add_singlevecs" =20 -# 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 .* =3D \\{10, 20, 48, 72\\}.*$gdb_prompt $" { - pass $test - } - -re "Value returned has type: .* Cannot determine contents.*$gdb_promp= t $" { - 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 .* =3D \\{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 + } } }