This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gccgo] Remove core files when running test in source directory
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Dec 2009 10:41:21 -0800
- Subject: [gccgo] Remove core files when running test in source directory
For easier compatibility with the Go testsuite, the gccgo testsuite
runs some tests in the source directory. In some cases the test will
leave a core dump. I committed this patch to gccgo to remove the core
dump, to avoid cluttering up the source directory.
Ian
Index: go-test.exp
===================================================================
--- go-test.exp (revision 154387)
+++ go-test.exp (working copy)
@@ -159,6 +159,7 @@ proc go-gc-tests { } {
# This is a vanilla execution test.
cd [file dirname $test]
go-torture-execute $test
+ file delete core [glob -nocomplain core.*]
cd $testdir
} elseif { [string match \
"// \$G \$D/\$F.go && \$L \$F.\$A || echo BUG*" \