public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31913] New: [gdb/testsuite] FAIL: gdb.python/py-mi-cmd.exp: -pycmd exp (unexpected output)
@ 2024-06-19 13:20 vries at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: vries at gcc dot gnu.org @ 2024-06-19 13:20 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31913
           Summary: [gdb/testsuite] FAIL: gdb.python/py-mi-cmd.exp: -pycmd
                    exp (unexpected output)
           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: ---

On fedora rawhide I ran into:
...
PASS: gdb.python/py-mi-cmd.exp: -pycmd dash-key
Expecting: ^(-pycmd exp[^M
]+)?(.*&"Traceback \(most recent call last\):.."^M
&"[^^M
]+py-mi-cmd.py[^^M
]+"^M
&"[^^M
]+raise gdb.GdbError\(\).."^M
&"gdb.GdbError.."^M
\^error,msg="Error occurred in Python\."[^M
]+[(]gdb[)] ^M
[ ]*)
-pycmd exp^M
&"Traceback (most recent call last):\n"^M
&"  File \"/data/vries/gdb/src/gdb/testsuite/gdb.python/py-mi-cmd.py\", line
76, in invoke\n    raise gdb.GdbError()\n"^M
&"gdb.GdbError\n"^M
^error,msg="Error occurred in Python."^M
(gdb) ^M
FAIL: gdb.python/py-mi-cmd.exp: -pycmd exp (unexpected output)
...

In contrast, a passing version looks like:
...
PASS: gdb.python/py-mi-cmd.exp: -pycmd dash-key
Expecting: ^(-pycmd exp[^M
]+)?(.*&"Traceback \(most recent call last\):.."^M
&"[^^M
]+py-mi-cmd.py[^^M
]+"^M
&"[^^M
]+raise gdb.GdbError\(\).."^M
&"gdb.GdbError.."^M
\^error,msg="Error occurred in Python\."[^M
]+[(]gdb[)] ^M
[ ]*)
-pycmd exp^M
&"Traceback (most recent call last):\n"^M
&"  File \"/data/vries/gdb/src/gdb/testsuite/gdb.python/py-mi-cmd.py\", line
76, in invoke\n"^M
&"    raise gdb.GdbError()\n"^M
&"gdb.GdbError\n"^M
^error,msg="Error occurred in Python."^M
(gdb) ^M
PASS: gdb.python/py-mi-cmd.exp: -pycmd exp
...

The difference seems to be:
...
&"  File \"/data/vries/gdb/src/gdb/testsuite/gdb.python/py-mi-cmd.py\", line
76, in invoke\n    raise gdb.GdbError()\n"^M
...
vs
...
&"  File \"/data/vries/gdb/src/gdb/testsuite/gdb.python/py-mi-cmd.py\", line
76, in invoke\n"^M
&"    raise gdb.GdbError()\n"^M
...

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-19 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-19 13:20 [Bug testsuite/31913] New: [gdb/testsuite] FAIL: gdb.python/py-mi-cmd.exp: -pycmd exp (unexpected output) vries at gcc dot gnu.org

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).