This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/TESTSUITE] pthread.exp
Michael Snyder writes:
> Elena Zannoni wrote:
> >
> > Another fix to simplify the matching on the filename and path. This
> > is what most/all of the other tests do, anyway. Not sure why it was
> > testing on srcdir, instead of srcfile.
> >
> > elena
>
> OK, Elena. Thanks.
committed
>
> >
> > * gdb.threads/pthreads.exp (test_startup): When setting a breakpoint
> > match on sourcefile name, instead of directory name.
> >
> > Index: pthreads.exp
> > ===================================================================
> > RCS file: /cvs/uberbaum/gdb/testsuite/gdb.threads/pthreads.exp,v
> > retrieving revision 1.10
> > diff -u -p -r1.10 pthreads.exp
> > --- pthreads.exp 4 Jan 2003 23:05:05 -0000 1.10
> > +++ pthreads.exp 8 Apr 2003 23:21:39 -0000
> > @@ -186,7 +186,7 @@ proc test_startup {} {
> > set main_id $expect_out(1,string)
> >
> > # Check that we can continue and create the first thread.
> > - gdb_test "break thread1" "Breakpoint .* file .*$srcdir.*"
> > + gdb_test "break thread1" "Breakpoint .* file .*$srcfile.*"
> > gdb_test "continue" \
> > "Continuing.*Breakpoint .*, thread1 \\(arg=0xfeedface\\).*at.*$srcfile.*" \
> > "Continue to creation of first thread"
> > @@ -199,7 +199,7 @@ proc test_startup {} {
> >
> > # Check that we can continue and create the second thread,
> > # ignoring the first thread for the moment.
> > - gdb_test "break thread2" "Breakpoint .* file .*$srcdir.*"
> > + gdb_test "break thread2" "Breakpoint .* file .*$srcfile.*"
> > gdb_test "continue" \
> > "Continuing.*Breakpoint .*, thread2 \\(arg=0xdeadbeef\\).*at.*$srcfile.*" \
> > "Continue to creation of second thread"