* [PATCH, testsuite]: Remove leftover gmon.out generated files from the run directory
@ 2007-08-29 9:14 Uros Bizjak
2007-08-30 1:12 ` Janis Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Uros Bizjak @ 2007-08-29 9:14 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
Hello!
This patch introduces new procedure into lib.gcc-dg.exp that removes
mon.out and gmon.out generated files from the run directory. Patch was
tested by running the testsuite on i686-pc-linux-gnu.
OK for mainline?
2007-08-29 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.
* g++.old-deja/g++.law/profile1.C: Ditto.
Uros.
[-- Attachment #2: test-profile.diff.txt --]
[-- Type: text/plain, Size: 1647 bytes --]
Index: lib/gcc-dg.exp
===================================================================
--- lib/gcc-dg.exp (revision 127883)
+++ lib/gcc-dg.exp (working copy)
@@ -352,6 +352,12 @@
}
}
+# 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
Index: gcc.dg/20021014-1.c
===================================================================
--- gcc.dg/20021014-1.c (revision 127883)
+++ gcc.dg/20021014-1.c (working copy)
@@ -23,3 +23,5 @@
abort ();
exit (0);
}
+
+/* { dg-final { cleanup-profile-file } } */
Index: gcc.dg/pr32450.c
===================================================================
--- gcc.dg/pr32450.c (revision 127883)
+++ gcc.dg/pr32450.c (working copy)
@@ -32,3 +32,5 @@
add ();
return stack_pointer - 1;
}
+
+/* { dg-final { cleanup-profile-file } } */
Index: gcc.dg/nest.c
===================================================================
--- gcc.dg/nest.c (revision 127883)
+++ gcc.dg/nest.c (working copy)
@@ -24,3 +24,5 @@
abort ();
return 0;
}
+
+/* { dg-final { cleanup-profile-file } } */
Index: g++.old-deja/g++.law/profile1.C
===================================================================
--- g++.old-deja/g++.law/profile1.C (revision 127883)
+++ g++.old-deja/g++.law/profile1.C (working copy)
@@ -8,3 +8,5 @@
{
printf ("PASS\n");
}
+
+/* { dg-final { cleanup-profile-file } } */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH, testsuite]: Remove leftover gmon.out generated files from the run directory
2007-08-29 9:14 [PATCH, testsuite]: Remove leftover gmon.out generated files from the run directory Uros Bizjak
@ 2007-08-30 1:12 ` Janis Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Janis Johnson @ 2007-08-30 1:12 UTC (permalink / raw)
To: Uros Bizjak; +Cc: GCC Patches
On Wed, 2007-08-29 at 10:53 +0200, Uros Bizjak wrote:
> Hello!
>
> This patch introduces new procedure into lib.gcc-dg.exp that removes
> mon.out and gmon.out generated files from the run directory. Patch was
> tested by running the testsuite on i686-pc-linux-gnu.
>
> OK for mainline?
This is OK.
Janis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-29 22:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-29 9:14 [PATCH, testsuite]: Remove leftover gmon.out generated files from the run directory Uros Bizjak
2007-08-30 1:12 ` Janis Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).