* gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / a1-selftest.exp
index 58ef0ac5c1a409d9695b2577bfa71ae1f25236bb..5a56a895c715fb4c958bf4ea40d7e7c01f704ea1 100644 (file)
@@ -52,7 +52,7 @@ proc test_with_self {} {
     # entire symbol table.  Set the timeout to 10 minutes, which should be
     # adequate for most environments (it *has* timed out with 5 min on a
     # SPARCstation SLC under moderate load, so this isn't unreasonable).
-    # After gdb is loaded, set the timeout to 30 seconds for the duration
+    # After gdb is started, set the timeout to 30 seconds for the duration
     # of this test, and then back to the original value.
 
     set timeout 600
@@ -60,8 +60,6 @@ proc test_with_self {} {
        return -1
     }
 
-    set timeout 30
-
     # disassemble yourself
     send "x/10i main\n"
     expect {
@@ -117,6 +115,10 @@ proc test_with_self {} {
        }
     }
 
+    # It may take a very long time for the inferior gdb to start (lynx),
+    # so we wait until after it's started to reset the timeout value.
+    set timeout 30
+
     # do we have a version number ?
     send "print version\n"
     expect {
This page took 0.037136 seconds and 4 git commands to generate.