aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.python')
-rw-r--r--gdb/testsuite/gdb.python/py-breakpoint.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
index 934690d..6f9245c 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -792,6 +792,15 @@ proc_with_prefix test_bkpt_qualified {} {
$one_location_re \
"qualified true"
+ # Test qualified with a non-bool type.
+ delete_breakpoints
+ gdb_test \
+ "python gdb.Breakpoint(\"multiply\", qualified=None)" \
+ [multi_line \
+ "Python Exception <class 'TypeError'>: argument 10 must be bool, not None" \
+ "Error occurred in Python: argument 10 must be bool, not None"] \
+ "qualified non_bool_type"
+
# Test qualified=True with an explicit function.
delete_breakpoints
gdb_test \