Commit e3c58a3a by Uros Bizjak Committed by Uros Bizjak

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
parent a9b03128
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
......@@ -8,3 +8,5 @@ main()
{
printf ("PASS\n");
}
/* { dg-final { cleanup-profile-file } } */
......@@ -23,3 +23,5 @@ int main (void)
abort ();
exit (0);
}
/* { dg-final { cleanup-profile-file } } */
......@@ -24,3 +24,5 @@ int main (void)
abort ();
return 0;
}
/* { dg-final { cleanup-profile-file } } */
......@@ -21,3 +21,5 @@ int main(void)
foo (2);
return 0;
}
/* { dg-final { cleanup-profile-file } } */
......@@ -32,3 +32,5 @@ int main ()
add ();
return stack_pointer - 1;
}
/* { dg-final { cleanup-profile-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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment