From: Fei Jie <feij.fnst@cn.fujitsu.com>
To: <gdb-patches@sourceware.org>
Subject: [PATCH v2 1/4] Add testcases to default.exp
Date: Mon, 09 Nov 2015 08:20:00 -0000 [thread overview]
Message-ID: <1447057215-7574-2-git-send-email-feij.fnst@cn.fujitsu.com> (raw)
In-Reply-To: <1447057215-7574-1-git-send-email-feij.fnst@cn.fujitsu.com>
add testcases about info:
*info extensions
*info handle
*info scope
*info win
add testcases about set width:
*set width -1
gdb/testsuite/ChangeLog:
* gdb.base/default.exp: Add new testcases.
---
gdb/testsuite/gdb.base/default.exp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index 4395c98..279dbb9 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -280,6 +280,8 @@ gdb_test "info copying"
#
#test info display
gdb_test "info display" "There are no auto-display expressions now." "info display"
+#test info extensions
+gdb_test "info extensions" "Filename extensions and the languages they represent.*" "info extensions"
#test info frame "f" abbreviation
gdb_test "info f" "No stack.*|No selected frame.*" "info frame \"f\" abbreviation"
#test info frame
@@ -290,6 +292,8 @@ gdb_test_no_output "info files" "info files"
gdb_test "info float" "The program has no registers now." "info float"
#test info functions
gdb_test "info functions" "All defined functions:" "info functions"
+#test info handle
+gdb_test "info handle" "Signal\\s+Stop\\s+Print\\s+Pass to program\\s+Description.*" "info handle"
#test info locals
gdb_test "info locals" "No frame selected." "info locals"
#test info program
@@ -298,6 +302,8 @@ gdb_test "info program" "The program being debugged is not being run." "info pro
gdb_test "info registers" "The program has no registers now." "info registers"
#test info stack "s" abbreviation
gdb_test "info s" "No stack." "info stack \"s\" abbreviation"
+#test info scope
+gdb_test "info scope" "requires an argument \\(function, line or \\*addr\\) to define a scope" "info scope"
#test info stack
gdb_test "info stack" "No stack." "info stack"
#test info set
@@ -353,6 +359,8 @@ gdb_test "info vector" "The program has no registers now." "info vector"
gdb_test "info warranty" "15. *Disclaimer of Warranty.*" "info warranty"
#test info watchpoints
gdb_test "info watchpoints" "No watchpoints." "info watchpoints"
+#test info win
+gdb_test_no_output "info win" "info win"
#test inspect
gdb_test "inspect" "The history is empty." "inspect"
#test jump
@@ -549,6 +557,8 @@ gdb_test "set variable" "Argument required .expression to compute.*" "set variab
gdb_test_no_output "set verbose" "set verbose"
#test set width
gdb_test "set width" "Argument required .integer to set it to.*" "set width"
+#test set width -1
+gdb_test "set width -1" "integer -1 out of range"
#test set write
# This is only supported on targets which use exec.o.
gdb_test_no_output "set write" "set write"
--
1.8.3.1
next prev parent reply other threads:[~2015-11-09 8:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-09 8:20 [PATCH v2 0/4] Add some testcases Fei Jie
2015-11-09 8:20 ` [PATCH v2 2/4] Add testcases to display.exp Fei Jie
2015-11-09 8:20 ` [PATCH v2 3/4] Add testcases to list.exp and dfp-test.exp Fei Jie
2015-11-09 8:20 ` Fei Jie [this message]
2015-11-09 8:20 ` [PATCH v2 4/4] Add testcases to break.exp Fei Jie
2015-11-09 9:36 ` Andrew Burgess
2015-11-10 1:15 ` fj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447057215-7574-2-git-send-email-feij.fnst@cn.fujitsu.com \
--to=feij.fnst@cn.fujitsu.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).