diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-10-08 16:58:00 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-10-10 10:23:59 +0100 |
commit | f91822c2b9f9fed0c2717b17f380e5216502ea32 (patch) | |
tree | fd5544e6971169bd13dbb48c7a4a209bba586a73 /gdb/testsuite/gdb.python | |
parent | d549d8d23db0c12986d98bcb8e393939409237b5 (diff) | |
download | gdb-f91822c2b9f9fed0c2717b17f380e5216502ea32.zip gdb-f91822c2b9f9fed0c2717b17f380e5216502ea32.tar.gz gdb-f91822c2b9f9fed0c2717b17f380e5216502ea32.tar.bz2 |
gdb/testsuite: use 'end' at the end of python blocks
Within the testsuite, use the keyword 'end' to terminate blocks of
Python code being sent to GDB, rather than sending \004. I could only
find three instances of this, all in tests that I originally wrote. I
have no memory of there being any special reason why I used \004
instead of 'end' - I assume I copied this from somewhere else that has
since changed.
Non of the tests being changed here are specifically about whether
\004 can be used to terminate a Python block, so I think switching to
the more standard 'end' keyword is the right choice.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r-- | gdb/testsuite/gdb.python/py-arch-reg-groups.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-arch-reg-names.exp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp index 9503e6c..f2cf8b0 100644 --- a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp +++ b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp @@ -102,5 +102,5 @@ gdb_py_test_silent_cmd \ " raise gdb.GdbError (\"miss-matched names\")" \ " if (r1 != r2):" \ " raise gdb.GdbError (\"miss-matched objects\")" \ - "\004" ] \ + "end" ] \ "check names and objects match" 1 diff --git a/gdb/testsuite/gdb.python/py-arch-reg-names.exp b/gdb/testsuite/gdb.python/py-arch-reg-names.exp index d3c600ff..62c47e8 100644 --- a/gdb/testsuite/gdb.python/py-arch-reg-names.exp +++ b/gdb/testsuite/gdb.python/py-arch-reg-names.exp @@ -102,7 +102,7 @@ gdb_py_test_silent_cmd \ " raise gdb.GdbError (\"miss-matched names\")" \ " if (r1 != r2):" \ " raise gdb.GdbError (\"miss-matched objects\")" \ - "\004" ] \ + "end" ] \ "check names and objects match" 1 # Ensure that the '.find' method on the iterator returns the same |