diff options
author | Tom Tromey <tromey@adacore.com> | 2023-07-06 11:44:09 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-07-14 10:52:56 -0600 |
commit | f591041956c2695a317ad3be3f453f1c6a24c07e (patch) | |
tree | d0f6d755ffdcf5621056cdf89192820474515705 | |
parent | 23e46b680f6fa6fce45aaf6c004cab6be322fbf1 (diff) | |
download | gdb-f591041956c2695a317ad3be3f453f1c6a24c07e.zip gdb-f591041956c2695a317ad3be3f453f1c6a24c07e.tar.gz gdb-f591041956c2695a317ad3be3f453f1c6a24c07e.tar.bz2 |
Minor cleanups in py-inferior.exp
While working on this series, I noticed a some oddities in
py-inferior.exp. One is an obviously incorrect comment, and the
others are confusing test names. This patch fixes these.
Approved-By: Pedro Alves <pedro@palves.net>
-rw-r--r-- | gdb/testsuite/gdb.python/py-inferior.exp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp index 58deece..576c2b7 100644 --- a/gdb/testsuite/gdb.python/py-inferior.exp +++ b/gdb/testsuite/gdb.python/py-inferior.exp @@ -206,8 +206,7 @@ if [isnative] { } } -# Test Inferior is_valid. This must always be the last test in -# this testcase as it kills the inferior. +# Test Inferior is_valid. with_test_prefix "is_valid" { gdb_py_test_silent_cmd "python inf_list = gdb.inferiors()" "get initial list" 1 @@ -247,7 +246,7 @@ with_test_prefix "is_valid" { gdb_test "python print (inf_list\[1\].is_valid())" "True" \ "check inferior validity 3" - gdb_test_no_output "remove-inferiors 2" "remove-inferiors 3" + gdb_test_no_output "remove-inferiors 2" gdb_test "python print (inf_list\[0\].is_valid())" "True" \ "check inferior validity 4" @@ -318,7 +317,7 @@ with_test_prefix "selected_inferior" { "print a connection object" gdb_test "inferior 1" ".*" "switch back to first inferior" - gdb_test_no_output "remove-inferiors 3" "remove second inferior" + gdb_test_no_output "remove-inferiors 3" } # Test repr()/str() |