From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A8ACA3857413; Wed, 6 Apr 2022 11:36:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8ACA3857413 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29032] New: [gdb][test-case failure, taskset] FAIL: gdb.base/eof-exit.exp: with non-dump terminal: close GDB with eof (timeout) Date: Wed, 06 Apr 2022 11:36:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2022 11:36:25 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29032 Bug ID: 29032 Summary: [gdb][test-case failure, taskset] FAIL: gdb.base/eof-exit.exp: with non-dump terminal: close GDB with eof (timeout) Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- [ Note: not with system readline. ] When running test-case gdb.base/eof-exit.exp, I get: ... Running /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base/eof-exit.= exp ... =3D=3D=3D gdb Summary =3D=3D=3D # of expected passes 2 # of known failures 1 ... But when using taskset -c 0: ... FAIL: gdb.base/eof-exit.exp: with non-dump terminal: close GDB with eof (timeout) FAIL: gdb.base/eof-exit.exp: with non-dump terminal: with bracketed-paste-m= ode on: close GDB with eof (timeout) ... First one in more detail: ... (gdb) dir^M Reinitialize source path to empty? (y or n) y^M Source directories searched: $cdir:$cwd^M (gdb) dir /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base^M Source directories searched: /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base:$cdir:$cwd^M (gdb) ^M (gdb) FAIL: gdb.base/eof-exit.exp: default: close GDB with eof (timeout) ... The observed behaviour matches with ^D getting dropped. Indeed, a retry at the point of the timeout fixes the fail: ... diff --git a/gdb/testsuite/gdb.base/eof-exit.exp b/gdb/testsuite/gdb.base/eof-exit.exp index 2d9530ccebe..0b310ee4b0b 100644 --- a/gdb/testsuite/gdb.base/eof-exit.exp +++ b/gdb/testsuite/gdb.base/eof-exit.exp @@ -55,6 +55,10 @@ proc run_test {} { eof { fail "$gdb_test_name (missed the prompt)" } + timeout { + send_gdb "\004" + exp_continue + } } } ... So, is ^D allowed to get dropped? --=20 You are receiving this mail because: You are on the CC list for the bug.=