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]

[commit] Failure in gdb.base/annota3.exp


I finally got around to updating and retesting my working trees, and found
this new failure:

PASS: gdb.base/annota3.exp: ignore 5 4
continue

Here's the log:

^Z^Zpost-prompt
Continuing.

^Z^Zstarting

^Z^Zframes-invalid
value is 7
my_array[2] is 3

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zframes-invalid

^Z^Zbreakpoint 5

Breakpoint 5, main () at /opt/src/gdb/src/gdb/testsuite/gdb.base/annota3.c:46

^Z^Zsource /opt/src/binutils/src/gdb/testsuite/gdb.base/annota3.c:46:559:beg:0x804840e
1: value = 11

^Z^Zstopped

^Z^Zbreakpoints-invalid

^Z^Zpre-prompt
(gdb)
^Z^Zprompt
FAIL: gdb.base/annota3.exp: annotate ignore count change (pattern 5)


The problem is that the pattern matches .*annota3.c:46 twice.  If we aren't
careful, depending on the timing of the I/O buffering, it may match the
second occurance first.  This patch fixes the problem by adding an anchoring
newline.  Checked in mainline & branch.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-08-17  Daniel Jacobowitz  <drow@mvista.com>

	* gdb.base/annota3.exp: Add missing newline.

Index: testsuite/gdb.base/annota3.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota3.exp,v
retrieving revision 1.1
diff -u -p -r1.1 annota3.exp
--- testsuite/gdb.base/annota3.exp	3 Aug 2003 01:57:13 -0000	1.1
+++ testsuite/gdb.base/annota3.exp	17 Aug 2003 16:47:57 -0000
@@ -331,7 +331,7 @@ gdb_expect_list "annotate ignore count c
     "\r\n\032\032post-prompt\r\n"
     "\(\r\n\032\032frames-invalid\r\n\)+"
     "\r\n\032\032breakpoint 5\r\n"
-    "Breakpoint 5, main \\(\\) at .*annota3.c:46"
+    "Breakpoint 5, main \\(\\) at .*annota3.c:46\r\n"
     "\r\n\032\032source .*annota3.c:46:\[0-9\]+:beg:0x\[0-9a-z\]+\r\n"
     "1: value = 11\r\n"
     "\r\n\032\032stopped\r\n"


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