diff options
author | Doug Evans <dje@google.com> | 2013-10-01 20:36:01 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-10-01 20:36:01 +0000 |
commit | a49bed3ad9da266aa3038663589332a72cefc214 (patch) | |
tree | e5702c7f0da08c563fc3be2fd20bfa09e04628b2 /gdb/testsuite | |
parent | 78b1434c3599f48ae84fa0c8630780b807d9fbe3 (diff) | |
download | gdb-a49bed3ad9da266aa3038663589332a72cefc214.zip gdb-a49bed3ad9da266aa3038663589332a72cefc214.tar.gz gdb-a49bed3ad9da266aa3038663589332a72cefc214.tar.bz2 |
* gdb.python/python.exp: Remove redundant print-stack tests.
Make all print-stack test names unique. Fix spelling of print-stack.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/python.exp | 24 |
2 files changed, 14 insertions, 15 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3e609cf..04d9450 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-10-01 Doug Evans <dje@google.com> + + * gdb.python/python.exp: Remove redundant print-stack tests. + Make all print-stack test names unique. Fix spelling of print-stack. + 2013-09-29 Yao Qi <yao@codesourcery.com> * gdb.base/shreloc.exp: Set $msymfile to 'shreloc.txt' if host diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index dd64a42..b0faf9a 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -208,15 +208,9 @@ gdb_test "python gdb.write(\"Error stream\\n\", stream=gdb.STDERR)" "Error strea gdb_test "python gdb.write(\"Normal stream\\n\", stream=gdb.STDOUT)" "Normal stream" "Test stdout write" gdb_test "python gdb.write(\"Log stream\\n\", stream=gdb.STDLOG)" "Log stream" "Test stdlog write" -# print-stack -gdb_test "show python print-stack" \ - "The mode of Python stack printing on error is \"message\".*" \ - "Test print-backtrace show setting. Default is message." +# Turn on full stack printing for subsequent tests. gdb_py_test_silent_cmd "set python print-stack full" \ - "Test print-backtrace set setting" 1 -gdb_test "show python print-stack" \ - "The mode of Python stack printing on error is \"full\".*" \ - "Test print-backtrace show setting to full." + "Set print-stack full for prompt tests" 1 # Test prompt substituion @@ -339,20 +333,20 @@ if ![runto_main] then { # print-stack settings gdb_test "show python print-stack" \ "The mode of Python stack printing on error is \"message\".*" \ - "Test print-backtrace show setting. Default is message." + "Test print-stack show setting. Default is message." gdb_py_test_silent_cmd "set python print-stack full" \ - "Test print-backtrace set setting" 1 + "Test print-stack set setting to full" 1 gdb_test "show python print-stack" \ "The mode of Python stack printing on error is \"full\".*" \ - "Test print-backtrace show setting to full." + "Test print-stack show setting to full" gdb_py_test_silent_cmd "set python print-stack none" \ - "Test print-backtrace set setting" 1 + "Test print-stack set setting to none" 1 gdb_test "show python print-stack" \ "The mode of Python stack printing on error is \"none\".*" \ - "Test print-backtrace show setting to none." + "Test print-stack show setting to none" gdb_py_test_silent_cmd "set python print-stack message" \ - "Test print-backtrace set setting" 1 + "Test print-stack set setting to message" 1 gdb_py_test_multiple "prompt substitution readline" \ "python" "" \ @@ -371,7 +365,7 @@ gdb_py_test_silent_cmd "python gdb.prompt_hook = None" \ "set the hook to default" 1 gdb_py_test_silent_cmd "set python print-stack full" \ - "Test print-backtrace set setting" 1 + "set print-stack full for prompt error test" 1 gdb_test_multiple "python gdb.prompt_hook = error_prompt" "set the hook" { -re "Traceback.*File.*line.*RuntimeError.*Python exception called.*" { |