This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] i387-env-reverse.exp: Extend timeout of "record to end of main" test.


Hi.

This test can sometimes errantly fail due to too short a timeout.
I will check this in in a few days if there are no objections.

2011-11-02  Doug Evans  <dje@google.com>

	* gdb.reverse/i387-env-reverse.exp: Extend timeout of
	"record to end of main" test.

Index: i387-env-reverse.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.reverse/i387-env-reverse.exp,v
retrieving revision 1.7
diff -u -p -r1.7 i387-env-reverse.exp
--- i387-env-reverse.exp	24 May 2011 12:01:22 -0000	1.7
+++ i387-env-reverse.exp	2 Nov 2011 22:16:35 -0000
@@ -49,8 +49,12 @@ runto main
 
 set location [gdb_get_line_number "END I387-FLOAT-REVERSE"]
 gdb_test_no_output "record"  "Turn on process record"
+# This can take awhile.
+set oldtimeout $timeout
+set timeout [expr $oldtimeout + 120]
 gdb_test "until $location" ".*/$srcfile:$location.*" \
     "record to end of main"
+set timeout $oldtimeout
 
 # Now rewind to beginning so we can begin testing.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]