public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug testsuite/30399] New: [gdb/testsuite] FAIL: gdb.ada/excep_handle.exp: continuing to first Constraint_Error exception handlers
Date: Fri, 28 Apr 2023 07:41:27 +0000	[thread overview]
Message-ID: <bug-30399-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=30399

            Bug ID: 30399
           Summary: [gdb/testsuite] FAIL: gdb.ada/excep_handle.exp:
                    continuing to first Constraint_Error exception
                    handlers
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

For a testsuite run with a build without tui and ncurses and system readline, I
run into:
...
FAIL: gdb.ada/excep_handle.exp: continuing to first Constraint_Error exception
handlers
FAIL: gdb.ada/excep_handle.exp: continuing and stopping in Storage_Error
exception handlers
FAIL: gdb.ada/excep_handle.exp: continuing without stopping to Program_Error
exception handlers
FAIL: gdb.ada/excep_handle.exp: continuing without stopping to Storage_Error
exception handlers
FAIL: gdb.ada/excep_handle.exp: continuing to second Constraint_Error exception
handlers
FAIL: gdb.ada/excep_handle.exp: continuing to Program_Error exception handlers
...

First fail in more detail:
...
(gdb) PASS: gdb.ada/excep_handle.exp: insert catchpoint on all Ada exceptions
handlers
continue^M
Continuing.^M
^M
Catchpoint 2, exception at 0x00000000004020b6 in foo () at
/data/vries/gdb/binutils-gdb.git/gdb/testsuite/gdb.ada/exc\
ep_handle/foo.adb:26^M
26            when Constraint_Error =>^M
(gdb) FAIL: gdb.ada/excep_handle.exp: continuing to first Constraint_Error
exception handlers
...

Fixed by:
...
diff --git a/gdb/testsuite/gdb.ada/excep_handle.exp
b/gdb/testsuite/gdb.ada/excep_handle.exp
index f8a6ded2cdf..300fefc8291 100644
--- a/gdb/testsuite/gdb.ada/excep_handle.exp
+++ b/gdb/testsuite/gdb.ada/excep_handle.exp
@@ -69,7 +69,7 @@ gdb_test_multiple "catch handlers" $msg {
 # Continue.  The program should stop at first exception handling.

 gdb_test "continue" \
-         "Continuing\.$eol$catchpoint_constraint_error_msg$eol.*" \
+         "Continuing\.$eol$catchpoint_constraint_error_msg" \
          "continuing to first Constraint_Error exception handlers"

 # Resume the program's exception.
...

I'll do some other builds to see whether this has to do with one of the
disabled aspects.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2023-04-28  7:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-28  7:41 vries at gcc dot gnu.org [this message]
2023-04-29  4:43 ` [Bug testsuite/30399] " vries at gcc dot gnu.org
2023-04-29  5:14 ` vries at gcc dot gnu.org
2023-04-29  6:36 ` vries at gcc dot gnu.org
2023-04-29  6:56 ` cvs-commit at gcc dot gnu.org
2023-04-29  6:57 ` vries at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30399-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).