Commit 9fe4a9ec authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

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
parent 10d1e551
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -57,3 +57,10 @@ twoSleep(int n)
BackgroundSleep(n);
return mysleep(n);
}
void
callGoStackCheck(void)
{
extern void goStackCheck(void);
goStackCheck();
}
......@@ -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) }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment