github.com/sitano/gsysint@v0.0.0-20190607084937-69a4f3233e4e/gid_test.go (about) 1 package gsysint 2 3 import ( 4 "testing" 5 6 "github.com/sitano/gsysint/g" 7 ) 8 9 func TestGIDFromStack(t *testing.T) { 10 id, err := GIDFromStackTrace() 11 if err != nil { 12 t.Fatal(err) 13 } 14 id2 := g.CurG().GoID 15 if id != id { 16 t.Error("ids are different", id, id2) 17 } 18 }