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]

Spurious testsuite failure


This patch fixes a spurious testsuite failure.  Installed as obvious.

Andreas.

2005-06-29  Andreas Schwab  <schwab@suse.de>

	* gdb.base/sigrepeat.c: Include <stdlib.h> and add return type for
	main to avoid warnings.

	* gdb.base/sigrepeat.exp: Fix reference to undefined variable.

--- gdb/testsuite/gdb.base/sigrepeat.c.~1.1.~	2005-01-24 23:00:59.000000000 +0100
+++ gdb/testsuite/gdb.base/sigrepeat.c	2005-04-29 18:06:41.000000000 +0200
@@ -19,6 +19,7 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <signal.h>
 #include <sys/time.h>
@@ -73,6 +74,7 @@ handler (int sig)
     }
 } /* handler */
 
+int
 main ()
 {
   int i;
--- gdb/testsuite/gdb.base/sigrepeat.exp.~1.1.~	2005-01-24 23:00:59.000000000 +0100
+++ gdb/testsuite/gdb.base/sigrepeat.exp	2005-06-29 16:47:45.000000000 +0200
@@ -36,7 +36,7 @@ set testfile sigrepeat
 set srcfile ${testfile}.c
 set binfile ${objdir}/${subdir}/${testfile}
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
-    untested "Couldn't compile ${module}.c"
+    untested "Couldn't compile ${srcfile}"
     return -1
 }
 

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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