From: Michael Snyder Date: Tue, 22 Feb 2011 18:51:27 +0000 (+0000) Subject: 2011-02-22 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79ba84ca24a60b4efaed18665f71e8ba022d48b4;p=binutils-gdb.git 2011-02-22 Michael Snyder * gdb.threads/thread-find.exp: Add tests for bad input to info threads. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 599a1828441..6394c5862c3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-02-22 Michael Snyder + + * gdb.threads/thread-find.exp: Add tests for bad input to + info threads. + 2011-02-22 Joel Brobecker * 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 1d8d3162e4b..305cc2c92b6 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"