This is the mail archive of the gdb-patches@sourceware.org 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]

[commit] Give py-mi.exp and py-prettyprint.exp unique executables


Sharing the name of a testsuite binary creates problems when NFS and
more than one machine are involved; it's easy to end up in a situation
where the target does not notice that a file has been deleted or
recreated.  I've removed most such cases from the testsuite; I noticed
this new one when py-prettyprint.exp started inexplicably failing and
passing in our nightly tester.

Checked in to trunk.

-- 
Daniel Jacobowitz
CodeSourcery

2010-03-22  Daniel Jacobowitz  <dan@codesourcery.com>

	* gdb.python/Makefile.in (EXECUTABLES): Add py-mi.
	* gdb.python/py-mi.exp (binfile): Rename to py-mi.

Index: gdb.python/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/Makefile.in,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile.in
--- gdb.python/Makefile.in	24 Feb 2010 21:18:28 -0000	1.4
+++ gdb.python/Makefile.in	22 Mar 2010 15:30:54 -0000
@@ -2,7 +2,7 @@ VPATH = @srcdir@
 srcdir = @srcdir@
 
 EXECUTABLES = py-type py-value py-prettyprint py-template py-block \
-	py-symbol
+	py-symbol py-mi
 
 all info install-info dvi install uninstall installcheck check:
 	@echo "Nothing to be done for $@..."
Index: gdb.python/py-mi.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-mi.exp,v
retrieving revision 1.5
diff -u -p -r1.5 py-mi.exp
--- gdb.python/py-mi.exp	14 Jan 2010 08:03:37 -0000	1.5
+++ gdb.python/py-mi.exp	22 Mar 2010 15:30:54 -0000
@@ -26,7 +26,7 @@ if [mi_gdb_start] {
 
 set testfile "py-prettyprint"
 set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/py-mi
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
     untested mi2-var-child.exp
     return -1


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