gcc-dg.exp (cleanup-profile-file): New procedure.

* lib/gcc-dg.exp (cleanup-profile-file): New procedure.
	* gcc.dg/20021014-1.c: Use cleanup-profile-file.
	* gcc.dg/gcc.dg/20021014-1.c: Ditto.
	* gcc.dg/pr32450.c: Ditto.
	* gcc.dg/nest.c: Ditto.
	* gcc.dg/nested-func-4.c: Ditto.
	* g++.old-deja/g++.law/profile1.C: Ditto.

From-SVN: r127919
This commit is contained in:
Uros Bizjak 2007-08-30 07:23:02 +02:00 committed by Uros Bizjak
parent a9b0312832
commit e3c58a3a65
7 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2007-08-30 Uros Bizjak <ubizjak@gmail.com>
* lib/gcc-dg.exp (cleanup-profile-file): New procedure.
* gcc.dg/20021014-1.c: Use cleanup-profile-file.
* gcc.dg/gcc.dg/20021014-1.c: Ditto.
* gcc.dg/pr32450.c: Ditto.
* gcc.dg/nest.c: Ditto.
* gcc.dg/nested-func-4.c: Ditto.
* g++.old-deja/g++.law/profile1.C: Ditto.
2007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/32989

View File

@ -8,3 +8,5 @@ main()
{
printf ("PASS\n");
}
/* { dg-final { cleanup-profile-file } } */

View File

@ -23,3 +23,5 @@ int main (void)
abort ();
exit (0);
}
/* { dg-final { cleanup-profile-file } } */

View File

@ -24,3 +24,5 @@ int main (void)
abort ();
return 0;
}
/* { dg-final { cleanup-profile-file } } */

View File

@ -21,3 +21,5 @@ int main(void)
foo (2);
return 0;
}
/* { dg-final { cleanup-profile-file } } */

View File

@ -32,3 +32,5 @@ int main ()
add ();
return stack_pointer - 1;
}
/* { dg-final { cleanup-profile-file } } */

View File

@ -352,6 +352,12 @@ proc remove-build-file { pat } {
}
}
# Remove runtime-generated profile file for the current test.
proc cleanup-profile-file { } {
remove-build-file "mon.out"
remove-build-file "gmon.out"
}
# Remove compiler-generated coverage files for the current test.
proc cleanup-coverage-files { } {
# This assumes that we are two frames down from dg-test or some other proc