Skip to content

Commit aada57f

Browse files
committed
misc/cgo/test: add skipped test for issue 17065
Updates #17065 Change-Id: I113caced6de666a9b032ab2684ece79482aa7357 Reviewed-on: https://go-review.googlesource.com/28964 Run-TryBot: Josh Bleecher Snyder <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 81ee936 commit aada57f

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

misc/cgo/test/cgo_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ func TestGCC68255(t *testing.T) { testGCC68255(t) }
7171
func TestCallGoWithString(t *testing.T) { testCallGoWithString(t) }
7272
func Test14838(t *testing.T) { test14838(t) }
7373
func Test8756(t *testing.T) { test8756(t) }
74+
func Test17065(t *testing.T) { test17065(t) }
7475

7576
func BenchmarkCgoCall(b *testing.B) { benchCgoCall(b) }

misc/cgo/test/issue17065.go

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2016 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package cgotest
6+
7+
/*
8+
// Test that C symbols larger than a page play nicely with the race detector.
9+
// See issue 17065.
10+
11+
int ii[65537];
12+
*/
13+
import "C"
14+
15+
import (
16+
"runtime"
17+
"testing"
18+
)
19+
20+
var sink C.int
21+
22+
func test17065(t *testing.T) {
23+
if runtime.GOOS == "darwin" {
24+
t.Skip("broken on darwin; issue 17065")
25+
}
26+
for i := range C.ii {
27+
sink = C.ii[i]
28+
}
29+
}

0 commit comments

Comments
 (0)