+2020-05-12 Tom de Vries <tdevries@suse.de>
+
+ * gdb.gdb/complaints.exp: Use with_test_prefix.
+ * gdb.xml/tdesc-regs.exp: Same.
+ * gdb.opt/inline-locals.exp: Fix test name.
+
2020-05-12 Tom de Vries <tdevries@suse.de>
* gdb.dwarf2/comp-unit-lang.exp: Use with_test_prefix.
"During symbol reading: Register a complaint"
# Re-issue the first message #1
- gdb_test_stdio \
- "call complaint_internal (\$cstr)" \
- "During symbol reading: Register a complaint"
+ with_test_prefix "re-issue" {
+ gdb_test_stdio \
+ "call complaint_internal (\$cstr)" \
+ "During symbol reading: Register a complaint"
+ }
# Add a second complaint, expect it
gdb_test_stdio \
set pass_re "array = {$decimal, \[^\r\n\]*}"
set kfail_re [multi_line $pass_re \
"array = {<optimized out> <repeats 64 times>}"]
- gdb_test_multiple "info locals" "info locals above bar 2" {
+ gdb_test_multiple "info locals" "info locals above bar 3" {
-re -wrap $pass_re {
pass $gdb_test_name
}
gdb_test "maintenance print reggroups" \
" Group\[ \t\]+Type\[ \t\]+\r\n.* general\[ \t\]+user\[ \t\]+\r\n.* foo\[ \t\]+user\[ \t\]+"
-load_description "core-only.xml" "" "test-regs.xml"
-# The extra register from the previous description should be gone.
-gdb_test "ptype \$extrareg" "type = void"
+with_test_prefix "core-only.xml" {
+ load_description "core-only.xml" "" "test-regs.xml"
+ # The extra register from the previous description should be gone.
+ gdb_test "ptype \$extrareg" "type = void"
+}