# Test that recording is per-inferior.
#
-# When recording an inferior, threads from other inferiors, both existing
-# and newly created, are not automatically recorded.
+# When recording an inferior, threads from other inferiors are not
+# automatically recorded. The "record btrace" command would fail if any
+# thread were already recording.
#
# Each inferior can be recorded separately.
return -1
}
- gdb_test_no_output "record btrace" "record btrace"
+ gdb_test_no_output "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"
}