From patchwork Wed Mar 8 14:23:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 19479 Received: (qmail 112168 invoked by alias); 8 Mar 2017 14:23:57 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 112139 invoked by uid 89); 8 Mar 2017 14:23:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:3302 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Mar 2017 14:23:54 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6F3874DD60 for ; Wed, 8 Mar 2017 14:23:55 +0000 (UTC) Received: from cascais.lan (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v28ENrb3030657 for ; Wed, 8 Mar 2017 09:23:54 -0500 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [pushed] gdb.arch/amd64-entry-value-param*.exp: Make sure test messages are unique Date: Wed, 8 Mar 2017 14:23:52 +0000 Message-Id: <1488983032-18111-1-git-send-email-palves@redhat.com> gdb/testsuite/ChangeLog: 2017-03-08 Pedro Alves * gdb.arch/amd64-entry-value-param-dwarf5.exp: Use with_test_prefix. * gdb.arch/amd64-entry-value-param.exp: Use with_test_prefix. --- gdb/testsuite/ChangeLog | 5 +++++ .../gdb.arch/amd64-entry-value-param-dwarf5.exp | 24 ++++++++++++++-------- gdb/testsuite/gdb.arch/amd64-entry-value-param.exp | 24 ++++++++++++++-------- 3 files changed, 35 insertions(+), 18 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 26135e5..4575e27 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2017-03-08 Pedro Alves + * gdb.arch/amd64-entry-value-param-dwarf5.exp: Use with_test_prefix. + * gdb.arch/amd64-entry-value-param.exp: Use with_test_prefix. + +2017-03-08 Pedro Alves + * gdb.arch/i386-pkru.exp (probe PKRU support): Handle detecting PKRU as not supported as a PASS. diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp index 0357ff4..bbaffd3 100644 --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp @@ -36,14 +36,20 @@ if ![runto_main] { set srcfile $srcfile2 gdb_breakpoint [gdb_get_line_number "break-here"] -gdb_continue_to_breakpoint "break-here" ".* break-here .*" -gdb_test "p y" " = 2" -gdb_test "p b" " = 4" +with_test_prefix "call 1" { + gdb_continue_to_breakpoint "break-here" ".* break-here .*" + gdb_test "p y" " = 2" + gdb_test "p b" " = 4" +} -gdb_continue_to_breakpoint "break-here" ".* break-here .*" -gdb_test "p y" " = 4" -gdb_test "p b" " = 8" +with_test_prefix "call 2" { + gdb_continue_to_breakpoint "break-here" ".* break-here .*" + gdb_test "p y" " = 4" + gdb_test "p b" " = 8" +} -gdb_continue_to_breakpoint "break-here" ".* break-here .*" -gdb_test "p y" " = 10" -gdb_test "p b" " = 20" +with_test_prefix "call 3" { + gdb_continue_to_breakpoint "break-here" ".* break-here .*" + gdb_test "p y" " = 10" + gdb_test "p b" " = 20" +} diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp index c0072ac..2ec9c31 100644 --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp @@ -36,14 +36,20 @@ if ![runto_main] { set srcfile $srcfile2 gdb_breakpoint [gdb_get_line_number "break-here"] -gdb_continue_to_breakpoint "break-here" ".* break-here .*" -gdb_test "p y" " = 2" -gdb_test "p b" " = 4" +with_test_prefix "call 1" { + gdb_continue_to_breakpoint "break-here" ".* break-here .*" + gdb_test "p y" " = 2" + gdb_test "p b" " = 4" +} -gdb_continue_to_breakpoint "break-here" ".* break-here .*" -gdb_test "p y" " = 4" -gdb_test "p b" " = 8" +with_test_prefix "call 2" { + gdb_continue_to_breakpoint "break-here" ".* break-here .*" + gdb_test "p y" " = 4" + gdb_test "p b" " = 8" +} -gdb_continue_to_breakpoint "break-here" ".* break-here .*" -gdb_test "p y" " = 10" -gdb_test "p b" " = 20" +with_test_prefix "call 3" { + gdb_continue_to_breakpoint "break-here" ".* break-here .*" + gdb_test "p y" " = 10" + gdb_test "p b" " = 20" +}