From patchwork Thu Nov 30 17:39:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weigand X-Patchwork-Id: 24639 Received: (qmail 36437 invoked by alias); 30 Nov 2017 17:39:35 -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 36428 invoked by uid 89); 30 Nov 2017 17:39:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Nov 2017 17:39:33 +0000 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAUHd3OF027334 for ; Thu, 30 Nov 2017 12:39:31 -0500 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ejns3ayhv-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 30 Nov 2017 12:39:31 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 30 Nov 2017 17:39:30 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 30 Nov 2017 17:39:28 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vAUHdSnJ32309434 for ; Thu, 30 Nov 2017 17:39:28 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F023611C052 for ; Thu, 30 Nov 2017 17:34:00 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DF5AC11C04C for ; Thu, 30 Nov 2017 17:34:00 +0000 (GMT) Received: from oc3748833570.ibm.com (unknown [9.152.213.29]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Thu, 30 Nov 2017 17:34:00 +0000 (GMT) Received: by oc3748833570.ibm.com (Postfix, from userid 1000) id 271A1D80125; Thu, 30 Nov 2017 18:39:28 +0100 (CET) Subject: [spu] Some additional test fixes To: gdb-patches@sourceware.org Date: Thu, 30 Nov 2017 18:39:28 +0100 (CET) From: "Ulrich Weigand" MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 17113017-0040-0000-0000-000004147B11 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17113017-0041-0000-0000-000020B7644C Message-Id: <20171130173928.271A1D80125@oc3748833570.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-11-30_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711300230 Hello, now that the ppc64 breakpoint regression is fixed, running the gdb.cell test suite showed a few more test case problems, caused by tests that haven't been updated to adapt to GDB changes. Tested on Cell/B.E., pushed to mainline. Bye, Ulrich gdb/testsuite/ChangeLog: 2017-11-30 Ulrich Weigand * gdb.cell/gcore.exp: Fix typo when setting spu_bin. Update for changed thread numbering. * gdb.cell/bt.exp: Update for changed GDB output. diff --git a/gdb/testsuite/gdb.cell/bt.exp b/gdb/testsuite/gdb.cell/bt.exp index b48fe9b..6aa300d 100644 --- a/gdb/testsuite/gdb.cell/bt.exp +++ b/gdb/testsuite/gdb.cell/bt.exp @@ -73,7 +73,7 @@ if ![runto_main] then { } delete_breakpoints -gdb_test "continue" ".*Program received signal SIGABRT, Aborted.*" +gdb_test "continue" ".*received signal SIGABRT, Aborted.*" gdb_test "backtrace" ".*abort.*crash_handler.*base.*offset.*.*main.*speid.*argp.*envp.*at.*$spu2_file.c.*.*spe_context_run.*indirect_handler.*base.*offset.*.*main.*speid.*argp.*envp.*at.*$spu_file.c.*.*spe_context_run.*spe_thread.*at.*$ppu_file.c.*" diff --git a/gdb/testsuite/gdb.cell/gcore.exp b/gdb/testsuite/gdb.cell/gcore.exp index efed4bb..db40326 100644 --- a/gdb/testsuite/gdb.cell/gcore.exp +++ b/gdb/testsuite/gdb.cell/gcore.exp @@ -26,7 +26,7 @@ set ppu_src ${srcdir}/${subdir}/${ppu_file}.c set ppu_bin [standard_output_file ${ppu_file}] set spu_file "coremaker-spu" set spu_src ${srcdir}/${subdir}/${spu_file}.c -set spu_bin [standard_output_file ${ppu_file}] +set spu_bin [standard_output_file ${spu_file}] if {![isnative]} then { return 0 @@ -92,10 +92,9 @@ gdb_expect { timeout { fail "(timeout) core-file command" } } -gdb_test "t 6" "Switching to thread 6.*" gdb_test "backtrace" ".*abort.*main.*at.*$ppu_file.c.*" -for {set thread_id 1} {$thread_id < 6} {incr thread_id} { +for {set thread_id 2} {$thread_id < 7} {incr thread_id} { gdb_test "t $thread_id" \ "Switching to thread $thread_id.*" \ "switch to thread $thread_id"