This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Minor testsuite fixes



The first two changes remove bogus xfails for the PA.  The 3rd change updates
annota2.exp to handle systems with hardware watchpoints.

Cheers,

	* gdb.base/selftest.exp (backtrace through signal handler): Remove
	hppa*-*-hpux* expected failure.
	* gdb.base/structs.exp (do_function_calls): Similarly.

	* gdb.c++/annota2.exp (watch triggered on a.x): Handle hardware
	watchpoints.

Index: gdb.base/selftest.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/selftest.exp,v
retrieving revision 1.4.84.2
diff -c -3 -p -r1.4.84.2 selftest.exp
*** selftest.exp	2001/12/20 16:57:34	1.4.84.2
--- selftest.exp	2002/01/07 16:34:10
*************** GDB.*Copyright \[0-9\]+ Free Software Fo
*** 375,381 ****
      # This fails on some linux systems for unknown reasons.  On the
      # systems where it fails, sometimes it works fine when run manually.
      # The testsuite failures may not be limited to just aout systems.
!     setup_xfail "i*86-pc-linuxaout-gnu" "hppa*-*-hpux*"
      set description "backtrace through signal handler"
      send_gdb "backtrace\n"
      gdb_expect {
--- 375,381 ----
      # This fails on some linux systems for unknown reasons.  On the
      # systems where it fails, sometimes it works fine when run manually.
      # The testsuite failures may not be limited to just aout systems.
!     setup_xfail "i*86-pc-linuxaout-gnu"
      set description "backtrace through signal handler"
      send_gdb "backtrace\n"
      gdb_expect {
Index: gdb.base/structs.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/structs.exp,v
retrieving revision 1.17
diff -c -3 -p -r1.17 structs.exp
*** structs.exp	2001/08/09 18:02:02	1.17
--- structs.exp	2002/01/07 16:34:13
*************** proc do_function_calls {} {
*** 102,118 ****
      gdb_test "p L2" " = {a = 97 'a', b = 98 'b'}"
      gdb_test "p L3" " = {a = 65 'A', b = 66 'B', c = 67 'C'}"
      gdb_test "p L4" " = {a = 49 '1', b = 50 '2', c = 51 '3', d = 52 '4'}"
-     if {$gcc_compiled} then {
- 	setup_xfail "hppa*-*-*"
-     }
      gdb_test "p L5" " = {a = 97 'a', b = 98 'b', c = 99 'c', d = 100 'd', e 
= 101 'e'}"
-     if {$gcc_compiled} then {
- 	setup_xfail "hppa*-*-*"
-     }
      gdb_test "p L6" " = {a = 65 'A', b = 66 'B', c = 67 'C', d = 68 'D', e = 
69 'E', f = 70 'F'}"
-     if {$gcc_compiled} then {
- 	setup_xfail "hppa*-*-*"
-     }
      gdb_test "p L7" " = {a = 49 '1', b = 50 '2', c = 51 '3', d = 52 '4', e = 
53 '5', f = 54 '6', g = 55 '7'}"
      gdb_test "p L8" " = {a = 49 '1', b = 50 '2', c = 51 '3', d = 52 '4', e = 
53 '5', f = 54 '6', g = 55 '7', h = 56 '8'}"
      gdb_test "p L9" " = {a = 97 'a', b = 98 'b', c = 99 'c', d = 100 'd', e 
= 101 'e', f = 102 'f', g = 103 'g', h = 104 'h', i = 105 'i'}"
--- 102,109 ----
Index: gdb.c++/annota2.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.c++/annota2.exp,v
retrieving revision 1.6
diff -c -3 -p -r1.6 annota2.exp
*** annota2.exp	2001/03/26 19:55:28	1.6
--- annota2.exp	2002/01/07 16:34:13
*************** send_gdb "next\n"
*** 195,200 ****
--- 195,202 ----
  gdb_expect {
     -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032frames
-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\03
2\032watchpoint 3\r\nWatchpoint 3: a.x\r\n\r\nOld value = 0\r\nNew value = 
1\r\n\r\n\032\032frame-begin 0 $hex\r\n\r\n\032\032frame-function-name\r\nmain\
r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at 
\r\n\032\032frame-source-file\r\n.*$srcfile\r\n\032\032frame-source-file-end\r\
n:\r\n\032\032frame-source-line\r\n$decimal\r\n\032\032frame-source-end\r\n\r\n
\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032frame-end\r\n\r\n\032\03
2stopped\r\n$gdb_prompt$" \
  	   { pass "watch triggered on a.x" }
+    -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032frames
-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032frames-invalid\r\n\r\n\03
2\032frames-invalid\r\n\r\n\032\032watchpoint 3\r\n\.*atchpoint 3: 
a.x\r\n\r\nOld value = 0\r\nNew value = 1\r\n\r\n\032\032frame-begin 0 
$hex\r\n\r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n 
\\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n.*
$srcfile\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n
$decimal\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032source 
.*$srcfile.*beg:$hex\r\n\r\n\032\032frame-end\r\n\r\n\032\032stopped\r\n.*$gdb_
prompt$" \
+ 	   { pass "watch triggered on a.x" }
     -re ".*$gdb_prompt$"  { fail "watch triggered on a.x" }
     timeout    { fail "watch triggered on a.x (timeout)" }
  }



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