aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-02-22 18:51:27 +0000
committerMichael Snyder <msnyder@vmware.com>2011-02-22 18:51:27 +0000
commit79ba84ca24a60b4efaed18665f71e8ba022d48b4 (patch)
treee24521d857cdf82667d3f69caa23f8e724a86df9 /gdb
parent298f437a6b0631636cd55d72b8d98d862fc8c51e (diff)
downloadgdb-79ba84ca24a60b4efaed18665f71e8ba022d48b4.zip
gdb-79ba84ca24a60b4efaed18665f71e8ba022d48b4.tar.gz
gdb-79ba84ca24a60b4efaed18665f71e8ba022d48b4.tar.bz2
2011-02-22 Michael Snyder <msnyder@vmware.com>
* gdb.threads/thread-find.exp: Add tests for bad input to info threads.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/thread-find.exp9
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 599a182..6394c58 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-22 Michael Snyder <msnyder@vmware.com>
+
+ * gdb.threads/thread-find.exp: Add tests for bad input to
+ info threads.
+
2011-02-22 Joel Brobecker <brobecker@adacore.com>
* gdb.python/py-breakpoint.exp: Fix the expected output of
diff --git a/gdb/testsuite/gdb.threads/thread-find.exp b/gdb/testsuite/gdb.threads/thread-find.exp
index 1d8d316..305cc2c 100644
--- a/gdb/testsuite/gdb.threads/thread-find.exp
+++ b/gdb/testsuite/gdb.threads/thread-find.exp
@@ -428,3 +428,12 @@ gdb_test_multiple "info threads 3-3" "info threads 3-3" {
}
}
+# Test bad input
+
+gdb_test "info thread foo" \
+ "Args must be numbers or '.' variables." \
+ "info thread foo"
+
+gdb_test "info thread foo -1" \
+ "Args must be numbers or '.' variables." \
+ "info thread foo -1"