OSDN Git Service

2011-02-22 Michael Snyder <msnyder@vmware.com>
authormsnyder <msnyder>
Wed, 23 Feb 2011 03:51:27 +0000 (03:51 +0000)
committermsnyder <msnyder>
Wed, 23 Feb 2011 03:51:27 +0000 (03:51 +0000)
* gdb.threads/thread-find.exp: Add tests for bad input to
info threads.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/thread-find.exp

index 599a182..6394c58 100644 (file)
@@ -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
index 1d8d316..305cc2c 100644 (file)
@@ -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"