This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA/TESTSUITE] pthread.exp
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 8 Apr 2003 19:29:07 -0400
- Subject: [RFA/TESTSUITE] pthread.exp
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
* 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"