summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-10-15 15:20:22 +0000
committerTom Tromey <tromey@redhat.com>2012-10-15 15:20:22 +0000
commitf4b02b440ffba0b7867d4fef1f2e13d44d1344ff (patch)
treeaf14c573879c2d9844d350256c6b8cfb3f8ca622 /gdb/testsuite/gdb.python
parentec53cfb44193d6488a810f63eefa85d0ae1345f5 (diff)
downloadgdb-f4b02b440ffba0b7867d4fef1f2e13d44d1344ff.tar.gz
PR python/14634:
* python/py-symbol.c (sympy_dealloc): Check for NULL symbol. testsuite * gdb.python/py-symbol.exp: Test symbol destructor.
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-symbol.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-symbol.exp b/gdb/testsuite/gdb.python/py-symbol.exp
index bc20ee471db..4442e79c050 100644
--- a/gdb/testsuite/gdb.python/py-symbol.exp
+++ b/gdb/testsuite/gdb.python/py-symbol.exp
@@ -160,3 +160,4 @@ gdb_test "python print a\[0\].is_valid()" "True" "Test symbol validity"
delete_breakpoints
gdb_unload
gdb_test "python print a\[0\].is_valid()" "False" "Test symbol validity"
+gdb_test_no_output "python a = None" "Test symbol destructor"