This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Testsuite tweaks


I'm checking this in:

Index: gcc/testsuite/ChangeLog
from  Alexandre Oliva  <aoliva@cygnus.com>

	* g++.old-deja/g++.brendan/code-gen4.C: Include stdio.h and
	stdlib.h.  Call abort() on failure.
	* g++.old-deja/g++.law/refs4.C: Likewise.
	* g++.old-deja/g++.law/temps4.C: Likewise.
	* g++.old-deja/g++.brendan/complex1.C: Don't assume argc is 1.
	* gcc.c-torture/execute/20000112-1.c: Include string.h.	

Index: gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C,v
retrieving revision 1.3
diff -u -r1.3 code-gen4.C
--- gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C	2000/01/04 15:52:22	1.3
+++ gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C	2000/05/28 13:40:22
@@ -9,7 +9,8 @@
 //
 // Workaround - declare "f1_arg" as type "short int".
 
-extern "C" int printf (const char *, ...); 
+#include <stdio.h>
+#include <stdlib.h>
 
 short int v2;
 
@@ -25,7 +26,7 @@
 	f1 (v1);
 
 	if (v2 != 0x00007777)
-	  printf ("FAIL\n");
+	  abort ();
 	else
 	  printf ("PASS\n");
 }
Index: gcc/testsuite/g++.old-deja/g++.brendan/complex1.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.brendan/complex1.C,v
retrieving revision 1.4
diff -u -r1.4 complex1.C
--- gcc/testsuite/g++.old-deja/g++.brendan/complex1.C	2000/05/28 05:38:01	1.4
+++ gcc/testsuite/g++.old-deja/g++.brendan/complex1.C	2000/05/28 13:40:22
@@ -12,14 +12,16 @@
 
 __complex__ double cd;
 
+int one = 1;
+
 int
-main(int argc, char *argv[])
+main()
 {
   cd = 1.0+90i;
-  cd *= argc;
+  cd *= one;
 
   if (__real__ cd != 1 || __imag__ cd != 90)
-    exit (1);
+    abort ();
 
   exit (0);
 }
Index: gcc/testsuite/g++.old-deja/g++.law/refs4.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.law/refs4.C,v
retrieving revision 1.4
diff -u -r1.4 refs4.C
--- gcc/testsuite/g++.old-deja/g++.law/refs4.C	2000/01/04 15:52:23	1.4
+++ gcc/testsuite/g++.old-deja/g++.law/refs4.C	2000/05/28 13:40:22
@@ -1,5 +1,6 @@
 // GROUPS passed references
-extern "C" int printf (const char *, ...);
+#include <stdio.h>
+#include <stdlib.h>
 
 const int& min(const int& tX, const int& tY)
 {
@@ -11,7 +12,7 @@
 	if (m == 1 && n == 100)
 	  printf("PASS\n");
 	else
-	  printf("FAIL\n");
+	  abort ();
 }
 
 int main()
Index: gcc/testsuite/g++.old-deja/g++.law/temps4.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.law/temps4.C,v
retrieving revision 1.2
diff -u -r1.2 temps4.C
--- gcc/testsuite/g++.old-deja/g++.law/temps4.C	1998/12/16 21:42:26	1.2
+++ gcc/testsuite/g++.old-deja/g++.law/temps4.C	2000/05/28 13:40:22
@@ -7,6 +7,7 @@
 // Date: Wed, 10 Nov 93 14:43:54 CST
 
 #include <stdio.h>
+#include <stdlib.h>
 
 class X {
     int i;
@@ -32,7 +33,7 @@
 main() {
     X x = foo();
     if (did_it)
-	printf ("FAIL\n");
+	abort ();
     else
 	printf ("PASS\n");
 }
Index: gcc/testsuite/gcc.c-torture/execute/20000112-1.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.c-torture/execute/20000112-1.c,v
retrieving revision 1.1
diff -u -r1.1 20000112-1.c
--- gcc/testsuite/gcc.c-torture/execute/20000112-1.c	2000/01/13 03:31:41	1.1
+++ gcc/testsuite/gcc.c-torture/execute/20000112-1.c	2000/05/28 13:40:22
@@ -1,3 +1,5 @@
+#include <string.h>
+
 static int
 special_format (fmt)
      const char *fmt;

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

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