This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/obvious/testsuite] maint.exp: add default FAIL patterns
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 17 Dec 2003 00:41:37 -0500 (EST)
- Subject: [commit/obvious/testsuite] maint.exp: add default FAIL patterns
This patch adds some ".*$gdb_prompt $" patterns so that tests just FAIL
instead of waiting several minutes for FAIL with timeout. I need this
for native hppa2.0w-hp-hpux11.11 with gcc 3.3.2, which is taking 992
seconds to run.
As far as actually making the tests work, someone (perhaps me)
can do that in a later phase. My goal right now is to remove
timeouts so that the test suite runs in 10 to 30 minutes.
I tested this with:
native i686-pc-linux-gnu, gcc 2.95.3 and gcc 3.3.2, dwarf-2 and stabs+
native hppa2.0w-hp-hpux11.11, gcc 3.3.2, as 2.14, default -g format
I am committing this as an obvious fix.
Michael C
2003-12-16 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/maint.exp: Add generic FAIL patterns to prevent timeouts.
Index: maint.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/maint.exp,v
retrieving revision 1.21
diff -c -3 -p -r1.21 maint.exp
*** maint.exp 9 Dec 2003 18:19:20 -0000 1.21
--- maint.exp 17 Dec 2003 04:08:39 -0000
*************** gdb_expect {
*** 400,405 ****
--- 400,406 ----
-re ".*bss.*$gdb_prompt $" { fail "maint info sections .text" }
-re ".*data.*$gdb_prompt $" { fail "maint info sections .text" }
-re ".* .text .*$gdb_prompt $" { pass "maint info sections .text" }
+ -re ".*$gdb_prompt $" { fail "maint info sections .text" }
timeout { fail "(timeout) maint info sections .text" }
}
*************** send_gdb "maint info sections CODE\n"
*** 409,414 ****
--- 410,416 ----
gdb_expect {
-re ".* .data .*$gdb_prompt $" { fail "maint info sections CODE" }
-re ".* .text .*$gdb_prompt $" { pass "maint info sections CODE" }
+ -re ".*$gdb_prompt $" { fail "maint info sections CODE" }
timeout { fail "(timeout) maint info sections CODE" }
}
*************** send_gdb "maint info sections DATA\n"
*** 418,423 ****
--- 420,426 ----
gdb_expect {
-re ".* .text .*$gdb_prompt $" { fail "maint info sections DATA" }
-re ".* .data .*$gdb_prompt $" { pass "maint info sections DATA" }
+ -re ".*$gdb_prompt $" { fail "maint info sections DATA" }
timeout { fail "(timeout) maint info sections DATA" }
}