This is the mail archive of the gdb-patches@sourceware.cygnus.com 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]

funcargs.exp call3a and call3b tests


I sumbit the enclosed patch for approval.  This change relaxes the
patterns used in the "run to call3b" and the "continue to call3b"
tests.  

The patterns assumed that 'cp' and 'ucp' point to null terminated
strings, but they are just pointers to chars.  GDB will print out
whatever garbage is following the char.

        --jtc


2000-03-23  J.T. Conklin  <jtc@redback.com>

	* gdb.base/funcargs.exp: Relax patterns matching pointers to char.


Index: funcargs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/funcargs.exp,v
retrieving revision 1.1.1.4
diff -c -r1.1.1.4 funcargs.exp
*** funcargs.exp	1999/11/09 01:23:15	1.1.1.4
--- funcargs.exp	2000/03/23 15:32:26
***************
*** 289,295 ****
      setup_xfail "a29k-*-udi"
      gdb_run_cmd
      gdb_expect {
! 	 -re ".* call3a \\(cp=$hex \"a\", sp=$hex, ip=$hex, lp=$hex\\) .*$gdb_prompt $" { pass "run to call3a" }
  	 -re "$gdb_prompt $" { fail "run to call3a" ; gdb_suppress_tests; }
  	 timeout { fail "(timeout) run to call3a" ; gdb_suppress_tests; }
      }
--- 289,295 ----
      setup_xfail "a29k-*-udi"
      gdb_run_cmd
      gdb_expect {
! 	 -re ".* call3a \\(cp=$hex \"a.*\", sp=$hex, ip=$hex, lp=$hex\\) .*$gdb_prompt $" { pass "run to call3a" }
  	 -re "$gdb_prompt $" { fail "run to call3a" ; gdb_suppress_tests; }
  	 timeout { fail "(timeout) run to call3a" ; gdb_suppress_tests; }
      }
***************
*** 301,307 ****
  
      # Continue; should stop at call3b and print actual arguments.
      # Try dereferencing the arguments.
!     if [gdb_test "cont" ".* call3b \\(ucp=$hex \"b\", usp=$hex, uip=$hex, ulp=$hex\\) .*" "continue to call3b"] {
  	gdb_suppress_tests;
      }
  
--- 301,307 ----
  
      # Continue; should stop at call3b and print actual arguments.
      # Try dereferencing the arguments.
!     if [gdb_test "cont" ".* call3b \\(ucp=$hex \"b.*\", usp=$hex, uip=$hex, ulp=$hex\\) .*" "continue to call3b"] {
  	gdb_suppress_tests;
      }
  



-- 
J.T. Conklin
RedBack Networks

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