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] Create _test directory when running tests


The gc compiler creates a _test directory when running tests.  The
template test has started expecting that directory to exist.  This
patch changes gotest to create the directory, to provide an
environment similar to that of the gc library.  Committed to gccgo
branch.

Ian

diff -r be7e820fc0ce libgo/testsuite/gotest
--- a/libgo/testsuite/gotest	Thu Jun 24 22:57:39 2010 -0700
+++ b/libgo/testsuite/gotest	Thu Jun 24 22:58:45 2010 -0700
@@ -97,6 +97,9 @@
 # Some tests expect the _obj directory created by the gc Makefiles.
 mkdir _obj
 
+# Some tests expect the _test directory created by the gc Makefiles.
+mkdir _test
+
 case "x$gofiles" in
 x)
 	gofiles=$(echo -n $(ls *_test.go *_test.pb.go 2>/dev/null))

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