mi_prepare_inline_tests $srcfile
-mi_run_inline_test child_deletion
+if { [mi_run_inline_test child_deletion] < 0 } {
+ return -1
+}
mi_gdb_exit
}
mi_prepare_inline_tests $srcfile
-mi_run_inline_test frozen
-mi_run_inline_test bitfield
+set inline_tests {
+ frozen
+ bitfield
+}
+
+# Needs to be last, following tests rely on this.
+lappend inline_tests floating
+
+foreach inline_test $inline_tests {
+ if { [mi_run_inline_test $inline_test] < 0 } {
+ return -1
+ }
+}
# Since the inline test framework does not really work with
-# function calls, first to inline tests and then do the reminder
+# function calls, first to inline tests and then do the remainder
# manually.
-mi_run_inline_test floating
set do_at_tests_callee_breakpoint [gdb_get_line_number "breakpoint inside callee"]
mi_gdb_test "-break-insert var-cmd.c:$do_at_tests_callee_breakpoint" ".*" \
"inside breakpoint inside callee"
mi_prepare_inline_tests $srcfile
-mi_run_inline_test reference_update
-mi_run_inline_test base_in_reference
-mi_run_inline_test reference_to_pointer
-mi_run_inline_test reference_to_struct
-mi_run_inline_test path_expression
+set inline_tests {
+ reference_update
+ base_in_reference
+ reference_to_pointer
+ reference_to_struct
+ path_expression
+}
+
+foreach inline_test $inline_tests {
+ if { [mi_run_inline_test $inline_test] < 0 } {
+ return -1
+ }
+}
set lineno [gdb_get_line_number "/* anonymous_structs_and_unions */"]
mi_create_breakpoint "$srcfile:$lineno" \
"delete varobj for ${var_name} (with RTTI) in $testname"
}
-mi_run_inline_test use_rtti_for_ptr
-mi_run_inline_test use_rtti_for_ref
-mi_run_inline_test use_rtti_for_ptr_child
-mi_run_inline_test use_rtti_for_ref_child
-mi_run_inline_test use_rtti_with_multiple_inheritence
-mi_run_inline_test type_update_when_use_rtti
-mi_run_inline_test skip_type_update_when_not_use_rtti
+set inline_tests {
+ use_rtti_for_ptr
+ use_rtti_for_ref
+ use_rtti_for_ptr_child
+ use_rtti_for_ref_child
+ use_rtti_with_multiple_inheritence
+ type_update_when_use_rtti
+ skip_type_update_when_not_use_rtti
+}
+
+foreach inline_test $inline_tests {
+ if { [mi_run_inline_test $inline_test] < 0 } {
+ return -1
+ }
+}
mi_gdb_exit
return 0
if {$first==1} {
# Start the program afresh.
mi_tbreak "$mi_autotest_source:$line"
- mi_run_cmd
+ if { [mi_run_cmd] < 0 } {
+ return -1
+ }
set line_now [mi_get_stop_line "$testcase: step to $line"]
set first 0
} elseif {$line_now!=$line} {
# will need more experience to be sure.
eval $statements
}
+
+ return 0
}
proc get_mi_thread_list {name} {