aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-01-21 10:29:09 +0100
committerJoel Brobecker <brobecker@adacore.com>2015-01-26 08:41:37 +0400
commitf8313f6ec4a86ec18c065ca96261c36da34818ab (patch)
tree6010b1c0137557c557b53749624b4b58bdc5fd56 /gdb
parent18393a2e423a67f9cbd1c2400aeec8f119680bf8 (diff)
downloadgdb-f8313f6ec4a86ec18c065ca96261c36da34818ab.zip
gdb-f8313f6ec4a86ec18c065ca96261c36da34818ab.tar.gz
gdb-f8313f6ec4a86ec18c065ca96261c36da34818ab.tar.bz2
check gdb.lookup_type return value in gdb.python/py-lookup-type.exp
This further improves this testcase to check the output of our calls to gdb.lookup_type. gdb/ChangeLog: * gdb.python/py-lookup-type.exp (test_lookup_type): Change the second test to print the name attribute of value returned by the call to gdb.lookup_type, and adjust the expected output accordingly.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog7
-rw-r--r--gdb/testsuite/gdb.python/py-lookup-type.exp3
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6822582..1eb72db 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2015-01-26 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.python/py-lookup-type.exp (test_lookup_type): Change
+ the second test to print the name attribute of value
+ returned by the call to gdb.lookup_type, and adjust
+ the expected output accordingly.
+
2015-01-25 Mark Wielaard <mjw@redhat.com>
* gdb.arch/i386-bp_permanent.c (standard): New declaration.
diff --git a/gdb/testsuite/gdb.python/py-lookup-type.exp b/gdb/testsuite/gdb.python/py-lookup-type.exp
index d8fb9e7..46d6fc6 100644
--- a/gdb/testsuite/gdb.python/py-lookup-type.exp
+++ b/gdb/testsuite/gdb.python/py-lookup-type.exp
@@ -32,7 +32,8 @@ if { [skip_python_tests] } { continue }
proc test_lookup_type { lang type_name } {
gdb_test_no_output "set language ${lang}"
- gdb_test_no_output "python gdb.lookup_type('${type_name}')" \
+ gdb_test "python print(gdb.lookup_type('${type_name}').name)" \
+ "${type_name}" \
"lookup type ${type_name} using language ${lang}"
}