diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-lazy-string.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-lazy-string.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-lazy-string.exp b/gdb/testsuite/gdb.python/py-lazy-string.exp index a00f47b..0650c67 100644 --- a/gdb/testsuite/gdb.python/py-lazy-string.exp +++ b/gdb/testsuite/gdb.python/py-lazy-string.exp @@ -73,3 +73,8 @@ foreach var_spec { { "ptr" "pointer" "const char \\*" -1 } \ #gdb_test "python print ($var.lazy_string(length=0).value())" "\"\"" "empty lazy string value" } } + +gdb_py_test_silent_cmd "python nas = gdb.parse_and_eval('not_a_string')" \ + "get not_a_string" 1 +gdb_test "python print(nas.lazy_string())" \ + "Cannot make lazy string from this object" |