+
+# Test repr()/str()
+with_test_prefix "__repr__" {
+ gdb_test "add-inferior" "Added inferior 4 on connection .*" "add inferior 4"
+ gdb_py_test_silent_cmd "python infs = gdb.inferiors()" "get inferior list" 1
+ gdb_test "python print (infs\[0\])" "<gdb.Inferior num=1, pid=$decimal>"
+ gdb_test "python print (infs)" \
+ "\\\(<gdb.Inferior num=1, pid=$decimal>, <gdb.Inferior num=4, pid=$decimal>\\\)" \
+ "print all inferiors 1"
+ gdb_test_no_output "remove-inferiors 4"
+ gdb_test "python print (infs)" \
+ "\\\(<gdb.Inferior num=1, pid=$decimal>, <gdb.Inferior \\\(invalid\\\)>\\\)" \
+ "print all inferiors 2"
+}
+
+# Test architecture.
+with_test_prefix "architecture" {
+ gdb_test "inferior 1" ".*" "switch to first inferior"
+ gdb_test "python print(gdb.selected_frame().architecture() is gdb.selected_inferior().architecture())" \
+ "True" \
+ "inferior architecture matches frame architecture"
+}