This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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*" \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]