Skip to content

Commit

Permalink
Fixed TestPEFile windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
insilications committed Sep 11, 2024
1 parent 659b4d1 commit 8dda08c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/binutils/binutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ func TestLLVMSymbolizer(t *testing.T) {
defer symbolizer.rw.close()

frames, err := symbolizer.addrInfo(c.addr)
t.Logf("EITA expect %v; got %v\n", c.frames, frames)
if err != nil {
t.Fatalf("LLVM: unexpected error %v", err)
}
Expand Down Expand Up @@ -533,7 +532,7 @@ func TestPEFile(t *testing.T) {
t.Fatalf("SourceLine: unexpected error %v", err)
}
wantFrames := []plugin.Frame{
{Func: "main", File: "hello.c", Line: 3, Column: 12},
{Func: "main", File: "hello.c", Line: 3, Column: 12, StartLine: 3},
}
if !reflect.DeepEqual(gotFrames, wantFrames) {
t.Fatalf("SourceLine for main: got %v; want %v\n", gotFrames, wantFrames)
Expand Down

0 comments on commit 8dda08c

Please sign in to comment.