This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fully anchor mi_gdb_test expected results.
On Thu, Aug 04, 2005 at 05:18:34PM -0400, Bob Rossi wrote:
> On Thu, Aug 04, 2005 at 04:57:47PM -0400, Daniel Jacobowitz wrote:
> > On Thu, Aug 04, 2005 at 04:37:04PM -0400, Bob Rossi wrote:
> > > > proc string_to_regexp {str} {
> > > > set result $str
> > > > regsub -all {[]*+.|()^$\[]} $str {\\&} result
> > > > return $result
> > > > }
> > >
> > > This doesn't seem to work for the " character.
> > >
> > > Here's the input to string_to_regexp,
> > > 555-break-insert -t "\"basics.c\":28"
> > >
> > > Here's the output,
> > > 555-break-insert -t "\"basics\.c\":28"
> > >
> > > Here is what I need to pass the test (which I hand wrote),
> > > -break-insert -t \"\\\\\"basics.c\\\\\":28\"
> > >
> > > It's a little odd. The quote needs to be escaped once, which makes
> > > perfect sense to me. The \ char needs to be escaped with 3 back slashes,
> > > to make a total of 4. This is a little odd to me. Is that what
> > > string_to_regexp does?
> > >
> > > Any ideas?
> >
> > Replace this:
> > regsub -all {[]*+.|()^$\[]} $str {\\&} result
> > with this:
> > regsub -all {[]*+.|()^$\[\\]} $str {\\&} result
> >
> > i.e. add two backslashes before the closing break. Then does it work?
>
> Ouch, yes it does.
Here are my testsuite results. The first one looks like a bug I
introduced, and the others look like random thread pass/failures. Is
that correct?
Thanks,
Bob Rossi
--- /home/bob/cvs/gdb/original/objdir/gdb/testsuite/gdb.sum 2005-08-04 18:26:56.000000000 -0400
+++ gdb.sum 2005-08-04 18:26:46.000000000 -0400
@@ -5887,7 +5887,7 @@
PASS: gdb.base/sizeof.exp: get valueof "(int) (char) -1" (-1)
PASS: gdb.base/sizeof.exp: get valueof "(int) (signed char) -1" (-1)
PASS: gdb.base/sizeof.exp: get valueof "(int) (unsigned char) -1" (255)
-PASS: gdb.base/sizeof.exp: check valueof "'\\377'"
+FAIL: gdb.base/sizeof.exp: check valueof "'\\377'"
PASS: gdb.base/sizeof.exp: check valueof "(int) (char) -1"
PASS: gdb.base/sizeof.exp: check valueof "(int) (signed char) -1"
PASS: gdb.base/sizeof.exp: check valueof "(int) (unsigned char) -1"
@@ -10861,8 +10861,8 @@
PASS: gdb.threads/manythreads.exp: stop threads 1
PASS: gdb.threads/manythreads.exp: info threads
PASS: gdb.threads/manythreads.exp: second continue
-FAIL: gdb.threads/manythreads.exp: stop threads 2
-FAIL: gdb.threads/manythreads.exp: GDB exits after stopping multithreaded program
+PASS: gdb.threads/manythreads.exp: stop threads 2
+PASS: gdb.threads/manythreads.exp: GDB exits after stopping multithreaded program
Running ../../../src/gdb/testsuite/gdb.threads/print-threads.exp ...
PASS: gdb.threads/print-threads.exp: successfully compiled posix threads test case
PASS: gdb.threads/print-threads.exp: set print sevenbit-strings
@@ -11109,7 +11109,7 @@
PASS: gdb.threads/tls.exp: 4 info address a_thread_local
PASS: gdb.threads/tls.exp: 4 info address another_thread_local
PASS: gdb.threads/tls.exp: selected thread: 5
-FAIL: gdb.threads/tls.exp: thread 5 up
+PASS: gdb.threads/tls.exp: thread 5 up
PASS: gdb.threads/tls.exp: 5 thread print me
FAIL: gdb.threads/tls.exp: 5 thread local storage
FAIL: gdb.threads/tls.exp: 5 another thread local storage
@@ -11277,12 +11277,12 @@
=== gdb Summary ===
-# of expected passes 10783
-# of unexpected failures 31
+# of expected passes 10785
+# of unexpected failures 29
# of unexpected successes 1
# of expected failures 41
# of known failures 59
# of untested testcases 6
# of unsupported tests 6
-/home/bob/cvs/gdb/original/objdir/gdb/testsuite/../../gdb/gdb version 6.3.50.20050804-cvs -nx
+/home/bob/cvs/gdb/gdbmi_tcl_ext/objdir/gdb/testsuite/../../gdb/gdb version 6.3.50.20050804-cvs -nx