diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2024-02-22 10:32:11 +0000 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2024-09-13 10:25:27 +0000 |
commit | 4d95ed91f3349fd4807dbed0213539017f164c6c (patch) | |
tree | a9686b79b70e31d395a6f366dd780f165dc8a0f7 /gdb | |
parent | 941a8f3df64a26055acbe83db29e256ed2ba7e8d (diff) | |
download | gdb-4d95ed91f3349fd4807dbed0213539017f164c6c.zip gdb-4d95ed91f3349fd4807dbed0213539017f164c6c.tar.gz gdb-4d95ed91f3349fd4807dbed0213539017f164c6c.tar.bz2 |
gdb, btrace: simplify gdb.btrace/multi-inferior.exp
We don't really need three inferiors to test multi-inferior recording.
We don't really need to start recording on the second inferior first.
We don't really need to check info record before starting recording.
If we were recording, there would be output, causing a fail.
This just complicates the test when there is something to debug.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.btrace/multi-inferior.exp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/gdb/testsuite/gdb.btrace/multi-inferior.exp b/gdb/testsuite/gdb.btrace/multi-inferior.exp index 6996b18..174d383 100644 --- a/gdb/testsuite/gdb.btrace/multi-inferior.exp +++ b/gdb/testsuite/gdb.btrace/multi-inferior.exp @@ -37,6 +37,8 @@ with_test_prefix "inferior 1" { if ![runto_main] { return -1 } + + gdb_test_no_output "record btrace" } with_test_prefix "inferior 2" { @@ -48,25 +50,5 @@ with_test_prefix "inferior 2" { return -1 } - gdb_test_no_output "record btrace" "record btrace" -} - -with_test_prefix "inferior 1" { - gdb_test "inferior 1" "Switching to inferior 1.*" - - gdb_test "info record" "No recording is currently active\\." - gdb_test_no_output "record btrace" "record btrace" -} - -with_test_prefix "inferior 3" { - gdb_test "add-inferior -exec ${host_binfile}" "Added inferior 3.*" \ - "add third inferior" - gdb_test "inferior 3" "Switching to inferior 3.*" - - if ![runto_main] { - return -1 - } - - gdb_test "info record" "No recording is currently active\\." - gdb_test_no_output "record btrace" "record btrace" + gdb_test_no_output "record btrace" } |