mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
build: make nacl pass
Add nacl.bash, the NaCl version of all.bash. It's a separate script because it builds a variant of package syscall with a large zip file embedded in it, containing all the input files needed for tests. Disable various tests new since the last round, mostly the ones using os/exec. Fixes #7945. LGTM=dave R=golang-codereviews, remyoudompheng, dave, bradfitz CC=golang-codereviews https://golang.org/cl/100590044
This commit is contained in:
parent
f374dd30a0
commit
0c2a727477
33 changed files with 2146 additions and 56 deletions
|
|
@ -95,6 +95,10 @@ func BenchmarkDeferMany(b *testing.B) {
|
|||
// The value reported will include the padding between runtime.gogo and the
|
||||
// next function in memory. That's fine.
|
||||
func TestRuntimeGogoBytes(t *testing.T) {
|
||||
if GOOS == "nacl" {
|
||||
t.Skip("skipping on nacl")
|
||||
}
|
||||
|
||||
dir, err := ioutil.TempDir("", "go-build")
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create temp directory: %v", err)
|
||||
|
|
@ -183,6 +187,10 @@ func TestSetPanicOnFault(t *testing.T) {
|
|||
}
|
||||
|
||||
func testSetPanicOnFault(t *testing.T, addr uintptr) {
|
||||
if GOOS == "nacl" {
|
||||
t.Skip("nacl doesn't seem to fault on high addresses")
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := recover(); err == nil {
|
||||
t.Fatalf("did not find error in recover")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue