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]

[PATCH] some testsuite cleanups


While trying to debug a runaway process, from a 'make check', I got a
bit frustrated because the process was called pthreads, and there are
several tests in the testsuite that have an executable called pthreads.

I'll commit tomorrow.

elena

2004-01-12  Elena Zannoni  <ezannoni@redhat.com>
 
        * gdb.threads/gcore-thread.exp: Prefix name of binary with
        test specific name.
        * gdb.mi/gdb669.exp: Ditto.
        * gdb.mi/mi-pthreads.exp: Ditto.
        * gdb.mi/mi1-pthreads.exp: Ditto.
        * gdb.mi/mi2-pthreads.exp: Ditto.
 

Index: gdb669.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/gdb669.exp,v
retrieving revision 1.4
diff -u -p -r1.4 gdb669.exp
--- gdb669.exp	1 Feb 2003 20:47:16 -0000	1.4
+++ gdb669.exp	12 Jan 2004 20:16:01 -0000
@@ -176,7 +176,7 @@ proc check_mi_and_console_threads {name}
 #
 set testfile "pthreads"
 set srcfile "$testfile.c"
-set binfile "$objdir/$subdir/$testfile"
+set binfile "$objdir/$subdir/gdb669-$testfile"
 
 set options [list debug incdir=$objdir]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
Index: mi-pthreads.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-pthreads.exp,v
retrieving revision 1.6
diff -u -p -r1.6 mi-pthreads.exp
--- mi-pthreads.exp	1 Feb 2003 20:47:16 -0000	1.6
+++ mi-pthreads.exp	12 Jan 2004 20:16:01 -0000
@@ -205,7 +205,7 @@ proc check_mi_thread_command_set {} {
 #
 set testfile "pthreads"
 set srcfile "$testfile.c"
-set binfile "$objdir/$subdir/$testfile"
+set binfile "$objdir/$subdir/mi-$testfile"
 
 set options [list debug incdir=$objdir]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
Index: mi1-pthreads.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi1-pthreads.exp,v
retrieving revision 1.4
diff -u -p -r1.4 mi1-pthreads.exp
--- mi1-pthreads.exp	1 Feb 2003 20:47:16 -0000	1.4
+++ mi1-pthreads.exp	12 Jan 2004 20:16:02 -0000
@@ -205,7 +205,7 @@ proc check_mi_thread_command_set {} {
 #
 set testfile "pthreads"
 set srcfile "$testfile.c"
-set binfile "$objdir/$subdir/$testfile"
+set binfile "$objdir/$subdir/mi1-$testfile"
 
 set options [list debug incdir=$objdir]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
Index: mi2-pthreads.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-pthreads.exp,v
retrieving revision 1.1
diff -u -p -r1.1 mi2-pthreads.exp
--- mi2-pthreads.exp	7 Aug 2003 17:47:42 -0000	1.1
+++ mi2-pthreads.exp	12 Jan 2004 20:16:02 -0000
@@ -205,7 +205,7 @@ proc check_mi_thread_command_set {} {
 #
 set testfile "pthreads"
 set srcfile "$testfile.c"
-set binfile "$objdir/$subdir/$testfile"
+set binfile "$objdir/$subdir/mi2-$testfile"
 
 set options [list debug incdir=$objdir]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {

Index: gcore-thread.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/gcore-thread.exp,v
retrieving revision 1.5
diff -u -p -r1.5 gcore-thread.exp
--- gcore-thread.exp	13 Oct 2003 16:30:45 -0000	1.5
+++ gcore-thread.exp	12 Jan 2004 20:16:34 -0000
@@ -30,7 +30,7 @@ set bug_id 0
 # Single-threaded test case
 set testfile "pthreads"
 set srcfile  ${testfile}.c
-set binfile  ${objdir}/${subdir}/${testfile}
+set binfile  ${objdir}/${subdir}/gcore-${testfile}
 
 if [istarget "*-*-linux"] then {
     set target_cflags "-D_MIT_POSIX_THREADS"


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