Skip to content

Commit

Permalink
Update unwind table tests to match latest testdata changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sumera Priyadarsini <[email protected]>
  • Loading branch information
Sylfrena committed Feb 19, 2024
1 parent a217be4 commit fb27b6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/stack/unwind/unwind_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ func TestBuildUnwindTable(t *testing.T) {

unwindTable, err := BuildUnwindTable(fdes)
require.NoError(t, err)
require.Len(t, unwindTable, 38)
require.Len(t, unwindTable, 2762)

require.Equal(t, uint64(0x20b6e0), unwindTable[0].Loc)
require.Equal(t, uint64(0x216b10), unwindTable[len(unwindTable)-1].Loc)
require.Equal(t, uint64(0x224357), unwindTable[len(unwindTable)-1].Loc)

require.Equal(t, frame.DWRule{Rule: frame.RuleOffset, Offset: -8}, unwindTable[0].RA)
require.Equal(t, frame.DWRule{Rule: frame.RuleUndefined, Offset: 0}, unwindTable[0].RA)
require.Equal(t, frame.DWRule{Rule: frame.RuleCFA, Reg: 0x7, Offset: 8}, unwindTable[0].CFA)
require.Equal(t, frame.DWRule{Rule: frame.RuleUnknown, Reg: 0x0, Offset: 0}, unwindTable[0].RBP)
}
Expand Down

0 comments on commit fb27b6c

Please sign in to comment.