* gdb.cp/derivation.exp: Make tests have unique names.
This commit is contained in:
parent
bf6be0f482
commit
c6cf1712fb
2 changed files with 21 additions and 13 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2013-06-06 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* gdb.cp/derivation.exp: Make tests have unique names.
|
||||||
|
|
||||||
2013-06-06 Tom Tromey <tromey@redhat.com>
|
2013-06-06 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* gdb.base/dump.exp (capture_value): Don't put expression into
|
* gdb.base/dump.exp (capture_value): Don't put expression into
|
||||||
|
|
|
@ -40,15 +40,17 @@ if {[prepare_for_testing $testfile.exp $testfile \
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check inheritance of typedefs.
|
# Check inheritance of typedefs.
|
||||||
foreach klass {"A" "D" "E" "F" "A2" "D2"} {
|
with_test_prefix "before run" {
|
||||||
gdb_test "ptype ${klass}::value_type" "type = int"
|
foreach klass {"A" "D" "E" "F" "A2" "D2"} {
|
||||||
gdb_test "whatis ${klass}::value_type" "type = int"
|
gdb_test "ptype ${klass}::value_type" "type = int"
|
||||||
gdb_test "p (${klass}::value_type) 0" " = 0"
|
gdb_test "whatis ${klass}::value_type" "type = int"
|
||||||
}
|
gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||||
foreach klass {"Z" "ZZ"} {
|
}
|
||||||
gdb_test "ptype ${klass}::value_type" "type = float"
|
foreach klass {"Z" "ZZ"} {
|
||||||
gdb_test "whatis ${klass}::value_type" "type = float"
|
gdb_test "ptype ${klass}::value_type" "type = float"
|
||||||
gdb_test "p (${klass}::value_type) 0" " = 0"
|
gdb_test "whatis ${klass}::value_type" "type = float"
|
||||||
|
gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set it up at a breakpoint so we can play with the variable values.
|
# Set it up at a breakpoint so we can play with the variable values.
|
||||||
|
@ -59,10 +61,12 @@ if ![runto 'marker1'] then {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check inheritance of typedefs again, but this time with an active block.
|
# Check inheritance of typedefs again, but this time with an active block.
|
||||||
foreach klass {"A" "D" "A2" "D2"} {
|
with_test_prefix "at marker1" {
|
||||||
gdb_test "ptype ${klass}::value_type" "type = int"
|
foreach klass {"A" "D" "A2" "D2"} {
|
||||||
gdb_test "whatis ${klass}::value_type" "type = int"
|
gdb_test "ptype ${klass}::value_type" "type = int"
|
||||||
gdb_test "p (${klass}::value_type) 0" " = 0"
|
gdb_test "whatis ${klass}::value_type" "type = int"
|
||||||
|
gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "up" ".*main.*" "up from marker1"
|
gdb_test "up" ".*main.*" "up from marker1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue