Files
binutils-gdb/gdb/testsuite/gdb.python
Andrew Burgess 4c148f65fc gdb/testsuite: fix failure in gdb.python/py-unwind.exp
A potential test failure was introduced with commit:

  commit 6bf5f25bb1
  Date:   Wed Mar 8 16:11:30 2023 +0000

      gdb/python: make the gdb.unwinder.Unwinder class more robust

In this commit a new test was added, however the expected output
pattern varies depending on which Python version GDB is linked
against.

Older versions of Python result in output like this:

    (gdb) python global_test_unwinder.name = "foo"
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    AttributeError: can't set attribute
    Error while executing Python code.
    (gdb)

While more recent versions of Python give a similar, but slightly more
verbose error message, like this:

    (gdb) python global_test_unwinder.name = "foo"
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    AttributeError: can't set attribute 'name'
    Error while executing Python code.
    (gdb)

The test was only accepting the first version of the output.  This
commit extends the test pattern so that either version will be
accepted.
2023-04-03 10:56:10 +01:00
..
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-26 18:28:31 -07:00
2023-01-26 18:28:31 -07:00
2023-01-13 13:18:58 -07:00
2023-01-22 14:27:49 -07:00
2023-02-27 15:46:31 -07:00
2023-02-27 15:46:31 -07:00
2023-02-27 15:46:31 -07:00
2023-01-25 09:02:11 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-13 13:18:58 -07:00
2023-01-26 18:28:32 -07:00
2023-01-13 13:18:58 -07:00
2023-01-26 18:28:32 -07:00
2023-01-13 13:18:58 -07:00