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:
Burcu Dogan 2015-06-26 00:25:06 -07:00
parent 25dc511cde
commit 0a8a8b8cb6
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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.