diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-exec-mi.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-exec-mi.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-exec-mi.exp b/gdb/testsuite/gdb.python/py-exec-mi.exp index 8a5d0c9..6b81644 100644 --- a/gdb/testsuite/gdb.python/py-exec-mi.exp +++ b/gdb/testsuite/gdb.python/py-exec-mi.exp @@ -30,3 +30,7 @@ gdb_test_no_output "python gdb.execute_mi('-exec-arguments', 'a', 'b', 'c')" \ "set arguments" gdb_test "show args" ".*\"a b c\"." + +# Ensure that this causes an error, not a crash. +gdb_test "python gdb.execute_mi()" \ + "Error occurred in Python: gdb.execute_mi requires command argument" |