* gdb.base/list.exp (test_forward_search): Fix to handle very
authorFred Fish <fnf@specifix.com>
Wed, 7 Aug 1996 22:38:24 +0000 (22:38 +0000)
committerFred Fish <fnf@specifix.com>
Wed, 7 Aug 1996 22:38:24 +0000 (22:38 +0000)
long source line without overflowing expect's input buffer.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/list.exp

index 3308479f5bc4ed862755b03ef74441e4e413ba0c..34a901c7970c34917690619540c017cf0308573c 100644 (file)
@@ -1,3 +1,8 @@
+Wed Aug  7 15:34:22 1996  Fred Fish  <fnf@cygnus.com>
+
+       * gdb.base/list.exp (test_forward_search): Fix to handle very
+       long source line without overflowing expect's input buffer.
+
 Wed Aug  7 12:03:25 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
        * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
index 1aadd4ccbfc985ecfd3582e85432d374736f64cc..a13a9d04046a099f2a351c4e4f6f2f2da4271012 100644 (file)
@@ -899,7 +899,8 @@ proc test_forward_search {} {
 
        set timeout 30
        verbose "Timeout is now $timeout seconds" 2
-       gdb_test "search 1234" ""
+       match_max 6000
+       gdb_test "search 1234" ".*1234.*" "search extremely long line (> 5000 chars)"
 }
 
 # Start with a fresh gdb.