diff mbox

[gccgo] Create _test directory when running tests

Message ID mcrk4pnaby0.fsf@dhcp-172-17-9-151.mtv.corp.google.com
State New
Headers show

Commit Message

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

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