1
0
mirror of https://github.com/golang/go synced 2024-09-29 14:14:29 -06:00
go/misc/cgo
Didier Spezia dc5315c341 build: prevent the entire repo to be wiped out by cgo test scripts
Following the parallelization of some tests, a race condition can
occur in testcarchive, testshared and testcshared.

In some cases, it can result in the go env GOROOT command returning
corrupted data, which are then passed to a rm command.

Make the shell script more robust by not trusting the result of
the go env GOROOT command. It does not really fix the issue, but
at least prevent the entire repository to be deleted.

Updates #13789

Change-Id: Iaf04a7bd078ed3a82e724e35c4b86e6f756f2a2f
Reviewed-on: https://go-review.googlesource.com/18173
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2016-01-04 19:56:30 +00:00
..
errors cmd/cgo: map C unsigned char back to _Ctype_uchar in error messages 2015-12-16 22:13:17 +00:00
gmp misc/cgo/gmp: change pi.go to use standard Go copyright header 2015-12-11 13:29:46 +00:00
life misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
nocgo
stdio misc/cgo/stdio: reenable tests 2015-12-05 21:24:30 +00:00
test runtime: fix sigaltstack test Skipf format string 2015-12-24 18:34:18 +00:00
testasan
testcarchive misc/cgo/testcarchive: skip test4 on darwin/{arm,arm64} 2015-12-22 16:16:02 +00:00
testcshared build: prevent the entire repo to be wiped out by cgo test scripts 2016-01-04 19:56:30 +00:00
testgodefs build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
testsanitizers misc/cgo/testsanitizers: check linux major/minor versions 2015-12-03 21:22:27 +00:00
testshared misc/cgo/testshared: add format specifier in Errorf calls 2015-11-21 10:19:16 +00:00
testsigfwd runtime: for c-archive/c-shared, don't install unnecessary signal handlers 2015-12-18 22:27:38 +00:00
testso cmd/dist: convert testso test into Go 2015-06-12 04:33:50 +00:00
testsovar misc/cgo/testsovar: needs the extern keyword to export variables on non-windows platforms 2015-07-21 18:10:57 +00:00
testtls