exp/audio/al,cmd/gomobile: fix the broken build
Change-Id: Ia2da7d987f253c11a62843f54051c9d18c1612b5 Reviewed-on: https://go-review.googlesource.com/11521 Reviewed-by: Nigel Tao <nigeltao@golang.org>
This commit is contained in:
parent
25dc511cde
commit
0a8a8b8cb6
|
@ -27,8 +27,8 @@ func TestBuild(t *testing.T) {
|
|||
os.Setenv("HOMEDRIVE", "C:")
|
||||
}
|
||||
cmdBuild.flag.Parse([]string{"golang.org/x/mobile/example/basic"})
|
||||
if *buildTarget != "android" {
|
||||
t.Fatalf("-target=%q, want android", *buildTarget)
|
||||
if buildTarget != "android" {
|
||||
t.Fatalf("-target=%q, want android", buildTarget)
|
||||
}
|
||||
err := runBuild(cmdBuild)
|
||||
if err != nil {
|
||||
|
|
|
@ -59,7 +59,7 @@ func CreateContext() (*Context, error) {
|
|||
if ctx == nil {
|
||||
return nil, errors.New("al: cannot create a new context")
|
||||
}
|
||||
return Context{ptr: ctx}, nil
|
||||
return &Context{ptr: ctx}, nil
|
||||
}
|
||||
|
||||
// Destroy destroys the context and frees the underlying resources.
|
||||
|
|
Loading…
Reference in New Issue