1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:34:40 -07:00

misc/cgo/test: add test for cgo callbacks with different amount of stack space available

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/11677043
This commit is contained in:
Dmitriy Vyukov 2013-07-22 21:53:20 +04:00
parent 10d1e55103
commit 9fe4a9ecdd
3 changed files with 1496 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -57,3 +57,10 @@ twoSleep(int n)
BackgroundSleep(n);
return mysleep(n);
}
void
callGoStackCheck(void)
{
extern void goStackCheck(void);
goStackCheck();
}

View File

@ -43,5 +43,6 @@ func Test5337(t *testing.T) { test5337(t) }
func Test5548(t *testing.T) { test5548(t) }
func Test5603(t *testing.T) { test5603(t) }
func Test3250(t *testing.T) { test3250(t) }
func TestCallbackStack(t *testing.T) { testCallbackStack(t) }
func BenchmarkCgoCall(b *testing.B) { benchCgoCall(b) }