From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9DD323858C35; Tue, 27 Feb 2024 15:24:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DD323858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709047448; bh=xSB2q5MbUOt9RFaaHXfvZcO75imiUSbtPHYlKqDz/rE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ToEUuiGTg7RRQGNaiYw6cdox92pz67j2kxWHs3+ZO5posqjxRkt6ANLjAhaKWZWgU 0t0SF9h3IlxJbtXu9vPaq3GGi4RdkGHrSCOmGRRZU1ZpS04Ch9KHrx9NNHdX9uNqPq UNGv32VMo90wE8PlY5quuZa3ZGvPVyhIIDfrACXg= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/31351] [gdb/testsuite] UNRESOLVED: gdb.dap/ada-nested.exp: compilation prog.adb Date: Tue, 27 Feb 2024 15:24:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31351 --- Comment #2 from Sourceware Commits --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D50c6682d74bb= 1b46ae3e140e107549733c699a44 commit 50c6682d74bb1b46ae3e140e107549733c699a44 Author: Tom de Vries Date: Tue Feb 27 16:24:15 2024 +0100 [gdb/testsuite] Reset errcnt and warncnt in default_gdb_init Say we do: ... $ make check RUNTESTFLAGS=3D"gdb.dap/ada-nested.exp gdb.dap/pause.exp" ... and add a perror at the end of pause.exp: ... dap_shutdown + +perror "foo" ... We run into: ... UNRESOLVED: gdb.dap/ada-nested.exp: compilation prog.adb ... This happens because the perror increases the errcnt, which is not rese= t at the end of the test-case, and consequently the first pass in the follow= ing test-case is changed into an unresolved. Version 1.6.3 of dejagnu contains a fix which produces an unresolved at= the end of the test-case, which does reset the errcnt, but this is with ver= sion 1.6.1. Furthermore, we reset the errcnt in clean_restart, but the pass is prod= uced before, so that doesn't help either. Fix this by resetting errcnt and warncnt in default_gdb_init. Tested on x86_64-linux. Approved-By: Tom Tromey PR testsuite/31351 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31351 --=20 You are receiving this mail because: You are on the CC list for the bug.=