Skip to content

Commit

Permalink
internal/importers: fix test
Browse files Browse the repository at this point in the history
Updates golang/go#19046

Change-Id: I51990a3e023d0a5339df72cc372565eecf5798e1
Reviewed-on: https://go-review.googlesource.com/37318
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
  • Loading branch information
Elias Naur committed Feb 21, 2017
1 parent 0a555e5 commit 1089cdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/importers/objc/objc.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func importModule(sdkPath, module string, identifiers []string, typeMap map[stri
clang := exec.Command("xcrun", "--sdk", "iphonesimulator", "clang", "-cc1", "-isysroot", sdkPath, "-ast-dump", "-fblocks", "-fobjc-arc", "-x", "objective-c", hFile)
out, err := clang.CombinedOutput()
if err != nil {
return nil, fmt.Errorf("clang failed to parse module: %v", err)
return nil, fmt.Errorf("clang failed to parse module: %v: %s", err, out)
}
p := &parser{
sdkPath: sdkPath,
Expand Down
4 changes: 2 additions & 2 deletions internal/importers/objc/objc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ func TestImport(t *testing.T) {
methods []*Func
}{
{
ref: importers.PkgRef{"Foundation/NSObjectP", "Hash"},
ref: importers.PkgRef{Pkg: "Foundation/NSObjectP", Name: "Hash"},
name: "NSObject",
methods: []*Func{
&Func{Sig: "hash", GoName: "Hash", Ret: &Type{Kind: Uint, Decl: "NSUInteger"}},
},
},
{
ref: importers.PkgRef{"Foundation/NSString", "StringWithContentsOfFileEncodingError"},
ref: importers.PkgRef{Pkg: "Foundation/NSString", Name: "StringWithContentsOfFileEncodingError"},
name: "NSString",
methods: []*Func{
&Func{
Expand Down

0 comments on commit 1089cdd

Please sign in to comment.