]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: clean ups in gdb.python/py-source-styling.exp
authorAndrew Burgess <aburgess@redhat.com>
Thu, 13 Feb 2025 16:43:39 +0000 (16:43 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 14 Feb 2025 21:12:32 +0000 (21:12 +0000)
commita9764ef043b1dabe86f0445dd31b3df3a369ae41
tree83ffe7bd8cbfd0c490446df376c74215d6136c0d
parentf589ead3af31d50513428d930290443a59aed425
gdb/testsuite: clean ups in gdb.python/py-source-styling.exp

The top comment in gdb.python/py-source-styling.exp was completely
wrong, clearly a cut&paste job from elsewhere.  Write a comment that
actually reflects what the test does.

I've also moved the allow_python_tests check earlier in the file.

And I changed some 'return -1' into just 'return'.  I'm not aware that
the '-1' adds any value.

I also folded a 'pass $gdb_test_name' into the preceding gdb_assert,
which I think is neater.

There is no change in what is actually being tested after this commit.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.python/py-source-styling.exp