Patchwork [gccgo] Create _test directory when running tests

login
register
mail settings
Submitter Ian Taylor
Date June 25, 2010, 6 a.m.
Message ID <mcrk4pnaby0.fsf@dhcp-172-17-9-151.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/56891/
State New
Headers show

Comments

Ian Taylor - June 25, 2010, 6 a.m.
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

Patch

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))