Adjust timeout in gdb.base/freebpcmd.exp.
authorSandra Loosemore <sandra@codesourcery.com>
Wed, 21 Oct 2015 16:54:49 +0000 (09:54 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Wed, 21 Oct 2015 16:54:49 +0000 (09:54 -0700)
2015-10-21  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/
* gdb.base/freebpcmd.exp: Use with_timeout_factor instead
of hardwired timeout value.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/freebpcmd.exp

index bf63b5d126dabc8842e9af71b9c5946a16448b4c..82d53f869f02bc5b0383e9711ea35cb9ce714a4e 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-21  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gdb.base/freebpcmd.exp: Use with_timeout_factor instead
+       of hardwired timeout value.
+
 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Pedro Alves  <palves@redhat.com>
 
index 2f46bc8abc89eaeb06167e59fe391b730602ad29..c7c0814c8dfde0f3cadf34cc1585e862cc1c895a 100644 (file)
@@ -103,22 +103,19 @@ if {$i >= [llength $lines]} {
 
 gdb_run_cmd
 
-set prev_timeout $timeout
-set timeout 120
-
-gdb_test_multiple "" "run program with breakpoint commands" {
-    -re "warning: Invalid control type in command structure" {
-        kfail "gdb/1489" "run program with breakpoint commands"
-    }
-    -re "Invalid i value\r\n$gdb_prompt $" {
-       xfail "run program with breakpoint commands (i value not readable)"
-    }
-    -re "$gdb_prompt $" {
-        pass "run program with breakpoint commands"
-    }
-    eof {
-        kfail "gdb/1489" "run program with breakpoint commands (GDB died)"
+with_timeout_factor 10 {
+    gdb_test_multiple "" "run program with breakpoint commands" {
+       -re "warning: Invalid control type in command structure" {
+           kfail "gdb/1489" "run program with breakpoint commands"
+       }
+       -re "Invalid i value\r\n$gdb_prompt $" {
+           xfail "run program with breakpoint commands (i value not readable)"
+       }
+       -re "$gdb_prompt $" {
+           pass "run program with breakpoint commands"
+       }
+       eof {
+           kfail "gdb/1489" "run program with breakpoint commands (GDB died)"
+       }
     }
 }
-
-set timeout $prev_timeout