X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.python%2Fpython.exp;h=a7a913d43cac99751a9e892436bd69fb5d50b7a6;hb=a0eaec95753c0f093f5cb80080ef423030d35edd;hp=c03c284abbd2765a90fcac33c96b74013c46e091;hpb=31b638d39a426599109be120a9e547126397d40f;p=platform%2Fupstream%2Fgdb.git diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index c03c284..a7a913d 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -58,6 +58,22 @@ gdb_py_test_multiple "multi-line python command" \ "print (23)" "" \ "end" "23" +# Spawn interactive Python help from a multi-line command, thus, after +# a secondary prompt. + +with_test_prefix "python interactive help" { + set test "python; help(); end" + gdb_test_multiple "python\nhelp()\nend" $test { + -re "online help utility.*help> $" { + pass $test + + # The "quit" must be seen on the output. A buggy GDB + # would not display it. + gdb_test "quit" "^quit.*leaving help.*" "quit help" + } + } +} + gdb_py_test_multiple "show python command" \ "define zzq" "Type commands for definition of .* just \"end\"\\.*" \ "python" "" \