[PATCH] testsuite cleanup 2 of 9

Janis Johnson janis187@us.ibm.com
Fri Mar 4 23:45:00 GMT 2005


I just submitted a patch to add proc 'cleanup-coverage-files' for use
with dg-final.  This patch uses that new functionality in tests that
currently leave generated coverage files in the build's gcc/testsuite
directory.

If final testing of my set of nine testsuite cleanup patches shows no
problems, I'll check this in on mainline.

2005-03-04  Janis Johnson  <janis187@us.ibm.com>

	* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
	* gcc.dg/20030107-1.c: Ditto.
	* gcc.dg/20030702-1.c: Ditto.
	* gcc.dg/profile-generate-1.c: Ditto.
	* g++.dg/other/profile1.C: Ditto.
	* g++.old-deja/g++.robertl/eb83.C: Ditto.

Index: gcc/testsuite/gcc.dg/20020201-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/20020201-1.c,v
retrieving revision 1.2
diff -u -p -r1.2 20020201-1.c
--- gcc/testsuite/gcc.dg/20020201-1.c	3 Aug 2004 08:22:21 -0000	1.2
+++ gcc/testsuite/gcc.dg/20020201-1.c	3 Mar 2005 22:07:30 -0000
@@ -38,3 +38,5 @@ main ()
 {
   doit ();
 }
+
+/* { dg-final { cleanup-coverage-files } } */
Index: gcc/testsuite/gcc.dg/20030107-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/20030107-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 20030107-1.c
--- gcc/testsuite/gcc.dg/20030107-1.c	7 Jan 2003 20:14:51 -0000	1.1
+++ gcc/testsuite/gcc.dg/20030107-1.c	3 Mar 2005 22:07:30 -0000
@@ -3,3 +3,5 @@
 
 extern void bar(void) __attribute__((noreturn));
 int foo (void) { bar(); }
+
+/* { dg-final { cleanup-coverage-files } } */
Index: gcc/testsuite/gcc.dg/20030702-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/20030702-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 20030702-1.c
--- gcc/testsuite/gcc.dg/20030702-1.c	25 Aug 2003 20:14:45 -0000	1.1
+++ gcc/testsuite/gcc.dg/20030702-1.c	3 Mar 2005 22:07:30 -0000
@@ -8,3 +8,4 @@ void test (void)
   fork ();
 }
 
+/* { dg-final { cleanup-coverage-files } } */
Index: gcc/testsuite/gcc.dg/profile-generate-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/profile-generate-1.c,v
retrieving revision 1.2
diff -u -p -r1.2 profile-generate-1.c
--- gcc/testsuite/gcc.dg/profile-generate-1.c	3 Aug 2004 08:22:21 -0000	1.2
+++ gcc/testsuite/gcc.dg/profile-generate-1.c	3 Mar 2005 22:07:30 -0000
@@ -33,3 +33,5 @@ main(void)
     abort ();
   return 0;
 }
+
+/* { dg-final { cleanup-coverage-files } } */
Index: gcc/testsuite/g++.dg/other/profile1.C
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/g++.dg/other/profile1.C,v
retrieving revision 1.2
diff -u -p -r1.2 profile1.C
--- gcc/testsuite/g++.dg/other/profile1.C	3 Mar 2004 00:46:31 -0000	1.2
+++ gcc/testsuite/g++.dg/other/profile1.C	3 Mar 2005 22:07:30 -0000
@@ -49,3 +49,5 @@ int main (int argc, char * argv[])
   ACE_UINT32 const mc_isoValue = 10000;
   ResourceBalanceType2 rbResourceBalanceType2(3, mc_isoValue, "ATM", "M");
 }
+
+// { dg-final { cleanup-coverage-files } }
Index: gcc/testsuite/g++.old-deja/g++.robertl/eb83.C
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb83.C,v
retrieving revision 1.5
diff -u -p -r1.5 eb83.C
--- gcc/testsuite/g++.old-deja/g++.robertl/eb83.C	1 May 2003 02:02:58 -0000	1.5
+++ gcc/testsuite/g++.old-deja/g++.robertl/eb83.C	3 Mar 2005 22:07:30 -0000
@@ -14,3 +14,5 @@ main()
   int j = 7;
   test_swap(i, j);
 }
+
+/* { dg-final { cleanup-coverage-files } } */



More information about the Gcc-patches mailing list