This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
testsuite expect patterns matching tabs
- To: gdb@sourceware.cygnus.com
- Subject: testsuite expect patterns matching tabs
- From: jtc@redback.com (J.T. Conklin)
- Date: 13 Aug 1999 11:33:37 -0700
- Reply-To: jtc@redback.com
I finally spent some time last evening to get the current dejagnu
installed, at least to the point where I can check native builds.
When going through failures, the first one one 'looked' right. It
took a while to track down, but it turns out on my system, default pty
attributes have the expand-tabs-to-spaces bit set. I don't think that
NetBSD is unique in this respect.
The test in question is correct. Gdb emits a tab, but since tabs are
expanded to spaces, the expect pattern fails. However, I don't know
whether its appropriate to relax the test (or tests --- I haven't had
time to look at any of the other failures) or to change the test
harness to change the pty attributes.
Thoughts?
--jtc
Index: call-ar-st.exp
===================================================================
RCS file: /home/jtc/CVSROOT/gdb/gdb/testsuite/gdb.base/call-ar-st.exp,v
retrieving revision 1.1.1.4
diff -c -r1.1.1.4 call-ar-st.exp
*** call-ar-st.exp 1999/08/05 20:07:28 1.1.1.4
--- call-ar-st.exp 1999/08/13 18:00:54
***************
*** 311,317 ****
send_gdb "continue\n"
gdb_expect {
! -re ".*main \\(\\) at .*call-ar-st.c:1241\r\n1241\t\[ \]+sum_array_print\\(10, \\*list1, \\*list2, \\*list3, \\*list4\\);.*$gdb_prompt $" {
pass "continue to 1241"}
-re ".*$gdb_prompt $" { fail "continue to 1241"}
timeout { fail "(timeout) continue to 1241"}
--- 311,317 ----
send_gdb "continue\n"
gdb_expect {
! -re ".*main \\(\\) at .*call-ar-st.c:1241\r\n1241\[\t \]+sum_array_print\\(10, \\*list1, \\*list2, \\*list3, \\*list4\\);.*$gdb_prompt $" {
pass "continue to 1241"}
-re ".*$gdb_prompt $" { fail "continue to 1241"}
timeout { fail "(timeout) continue to 1241"}
--
J.T. Conklin
RedBack Networks