From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 151DE3858CDB; Thu, 4 May 2023 11:57:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 151DE3858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683201431; bh=IGvzaMAn5e1R4wjdRDDcdpye1w5py5YrVd9YZaYiZMc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iapp1Ix/O1xoE9asnWuJ820cSkjQa7KGV0myqh1HtQHkdOqnbUM8IYcvw+Rdsd6q6 +Mq1xXu9muLpQcb9tZ6LBfbSUJzXOBjQQ7ZAQI5QAFRrcDlrS4n7tOTm/DFouqcpjJ vvJ4KzbncTdEEh0oZUTSj01hHnEVrgorkm7x9Y8E= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/30414] Random failure in gdb.fortran/lbound-ubound.exp Date: Thu, 04 May 2023 11:57:10 +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: 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: 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=3D30414 --- Comment #4 from Tom de Vries --- (In reply to Simon Marchi from comment #3) > Hmm it could be. The gdb_test_multiple reads from both the GDB output and > the inferior's output, so it is possible that there is a race here, that = we > read GDB's prompt before we read the UBOUND line. AFAIU, comment 0 shows the race happening: ... (gdb) continue Continuing. Breakpoint 2, do_test (lb=3D..., ub=3D...) at /home/jenkins/workspace/binutils-gdb_master_linuxbuild/platform/jammy-amd64= /target_board/nati ve-gdbserver/src/binutils-gdb/gdb/testsuite/gdb.fortran/lbound-ubound.F90:45 45 print *, "" ! Test Breakpoint (gdb) Remote debugging from host ::1, port 37496 Expected GDB Output: LBOUND =3D (-8, -10) UBOUND =3D (-1, -2) APB: Run a test here APB: Expected lbound '(-8, -10)' APB: Expected ubound '' ... My understanding is that we see the order in which expect reads things, and= in this snippet the prompt comes before the UBOUND line. --=20 You are receiving this mail because: You are on the CC list for the bug.=