From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52456 invoked by alias); 13 Aug 2019 17:57:48 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 52447 invoked by uid 89); 13 Aug 2019 17:57:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Aug 2019 17:57:46 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.gdb/selftest.exp regexp From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: Date: Tue, 13 Aug 2019 18:02:00 -0000 X-SW-Source: 2019-q3/txt/msg02402.txt.bz2 *** TEST RESULTS FOR COMMIT abc6c00fb6cbb199348ec5f0bf4d969ed48bdfad *** commit abc6c00fb6cbb199348ec5f0bf4d969ed48bdfad Author: Tom de Vries AuthorDate: Tue Aug 13 18:57:50 2019 +0200 Commit: Tom de Vries CommitDate: Tue Aug 13 18:57:50 2019 +0200 [gdb/testsuite] Fix gdb.gdb/selftest.exp regexp With gdb.gdb/selftest.exp, we get: ... (xgdb) PASS: gdb.gdb/selftest.exp: send SIGINT signal to child process ^M Thread 1 "xgdb" received signal SIGINT, Interrupt.^M 0x00007ffff5bf01db in poll () from /lib64/libc.so.6^M (gdb) FAIL: gdb.gdb/selftest.exp: send ^C to child process again ... The failure is due to gdb printing 'Thread 1 "xgdb" received signal SIGINT', but the regexp in the test-case expecting 'Program received signal SIGINT'. Fix this by updating the regexp, similar to how that is done earlier in the test-case. gdb/testsuite/ChangeLog: 2019-08-13 Tom de Vries * gdb.gdb/selftest.exp (send ^C to child process again): Accept also Thread. diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2cd9a004df..e4b9616dde 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-08-13 Tom de Vries + + * gdb.gdb/selftest.exp (send ^C to child process again): Accept also + Thread. + 2019-08-13 Sandra Loosemore * gdb.python/py-completion.exp: Download the .py file to the host diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index 9651561faf..2f481ec404 100644 --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp @@ -119,7 +119,7 @@ proc test_with_self { } { set description "send ^C to child process again" send_gdb "\003" gdb_expect { - -re "Program received signal SIGINT.*$gdb_prompt $" { + -re "(Thread .*|Program) received signal SIGINT.*$gdb_prompt $" { pass "$description" } -re ".*$gdb_prompt $" {