This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/TESTSUITE] pthread.exp
- From: Michael Snyder <msnyder at redhat dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 10 Apr 2003 22:16:24 -0700
- Subject: Re: [RFA/TESTSUITE] pthread.exp
- Organization: Red Hat, Inc.
- References: <16019.23363.555781.687562@localhost.redhat.com>
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.
>
> * 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"