diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/sizeof.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/sizeof.exp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/sizeof.exp b/gdb/testsuite/gdb.base/sizeof.exp index effd398..7e86b2a 100644 --- a/gdb/testsuite/gdb.base/sizeof.exp +++ b/gdb/testsuite/gdb.base/sizeof.exp @@ -62,8 +62,10 @@ set sizeof_long_double [get_sizeof "long double" 8] # proc check_sizeof { type size } { - gdb_test "next" "" "" - gdb_test "p size" " = ${size}" "check sizeof \"$type\"" + with_test_prefix "check sizeof \"$type\"" { + gdb_test "next" + gdb_test "p size" " = ${size}" "size matches" + } } check_sizeof "char" ${sizeof_char} @@ -80,8 +82,10 @@ check_sizeof "double" ${sizeof_double} check_sizeof "long double" ${sizeof_long_double} proc check_valueof { exp val } { - gdb_test "next" "" "" - gdb_test "p /d value" " = ${val}" "check valueof \"$exp\"" + with_test_prefix "check valueof \"$exp\"" { + gdb_test "next" + gdb_test "p /d value" " = ${val}" "value matches" + } } # Check that GDB and the target agree over the sign of a character. |