Skip to content

Commit 2d5a3a1

Browse files
committed
Update test snapshots
1 parent 0586ff9 commit 2d5a3a1

10 files changed

+393
-43
lines changed

objdiff-core/tests/snapshots/arch_arm__read_arm.snap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,6 +1507,19 @@ Object {
15071507
align: None,
15081508
virtual_address: None,
15091509
},
1510+
Symbol {
1511+
name: "[.data-0]",
1512+
demangled_name: None,
1513+
address: 0,
1514+
size: 76,
1515+
kind: Section,
1516+
section: Some(
1517+
2,
1518+
),
1519+
flags: FlagSet(Local),
1520+
align: None,
1521+
virtual_address: None,
1522+
},
15101523
],
15111524
sections: [
15121525
Section {

objdiff-core/tests/snapshots/arch_mips__filter_non_matching.snap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,4 +449,17 @@ expression: obj.symbols
449449
align: None,
450450
virtual_address: None,
451451
},
452+
Symbol {
453+
name: "[.data-0]",
454+
demangled_name: None,
455+
address: 0,
456+
size: 0,
457+
kind: Section,
458+
section: Some(
459+
2,
460+
),
461+
flags: FlagSet(Local),
462+
align: None,
463+
virtual_address: None,
464+
},
452465
]

objdiff-core/tests/snapshots/arch_mips__read_mips-3.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ expression: output
1010
[(Address(20), Normal, 5), (Spacing(4), Normal, 0), (Opcode("jal", 2), Normal, 10), (Symbol(Symbol { name: "xglSleep", demangled_name: None, address: 0, size: 0, kind: Unknown, section: None, flags: FlagSet(Global), align: None, virtual_address: None }), Bright, 0), (Eol, Normal, 0)]
1111
[(Address(24), Normal, 5), (Spacing(4), Normal, 0), (Opcode("nop", 113), Normal, 10), (Eol, Normal, 0)]
1212
[(Address(28), Normal, 5), (Spacing(4), Normal, 0), (Opcode("lw", 26), Normal, 10), (Argument(Opaque("$a1")), Normal, 0), (Basic(", "), Normal, 0), (Basic("%gp_rel("), Normal, 0), (Symbol(Symbol { name: "WorkEnd", demangled_name: None, address: 64, size: 4, kind: Object, section: Some(8), flags: FlagSet(Global), align: None, virtual_address: None }), Bright, 0), (Basic(")"), Normal, 0), (Basic("("), Normal, 0), (Argument(Opaque("$gp")), Normal, 0), (Basic(")"), Normal, 0), (Eol, Normal, 0)]
13-
[(Address(32), Normal, 5), (Spacing(4), Normal, 0), (Opcode("lui", 20), Normal, 10), (Argument(Opaque("$a0")), Normal, 0), (Basic(", "), Normal, 0), (Basic("%hi("), Normal, 0), (Symbol(Symbol { name: "[.sdata]", demangled_name: None, address: 0, size: 76, kind: Section, section: Some(8), flags: FlagSet(Local), align: None, virtual_address: None }), Bright, 0), (Basic(")"), Normal, 0), (Eol, Normal, 0)]
13+
[(Address(32), Normal, 5), (Spacing(4), Normal, 0), (Opcode("lui", 20), Normal, 10), (Argument(Opaque("$a0")), Normal, 0), (Basic(", "), Normal, 0), (Basic("%hi("), Normal, 0), (Symbol(Symbol { name: "[.sdata]", demangled_name: None, address: 0, size: 0, kind: Section, section: Some(8), flags: FlagSet(Local), align: None, virtual_address: None }), Bright, 0), (Basic(")"), Normal, 0), (Eol, Normal, 0)]
1414
[(Address(36), Normal, 5), (Spacing(4), Normal, 0), (Opcode("daddu", 97), Normal, 10), (Argument(Opaque("$a2")), Normal, 0), (Basic(", "), Normal, 0), (Argument(Opaque("$zero")), Normal, 0), (Basic(", "), Normal, 0), (Argument(Opaque("$zero")), Normal, 0), (Eol, Normal, 0)]
1515
[(Address(40), Normal, 5), (Spacing(4), Normal, 0), (Opcode("jal", 2), Normal, 10), (Symbol(Symbol { name: "xglSoundLoadEffect", demangled_name: None, address: 0, size: 0, kind: Unknown, section: None, flags: FlagSet(Global), align: None, virtual_address: None }), Bright, 0), (Eol, Normal, 0)]
16-
[(Address(44), Normal, 5), (Spacing(4), Normal, 0), (Opcode("addiu", 12), Normal, 10), (Argument(Opaque("$a0")), Normal, 0), (Basic(", "), Normal, 0), (Argument(Opaque("$a0")), Normal, 0), (Basic(", "), Normal, 0), (Basic("%lo("), Normal, 0), (Symbol(Symbol { name: "[.sdata]", demangled_name: None, address: 0, size: 76, kind: Section, section: Some(8), flags: FlagSet(Local), align: None, virtual_address: None }), Bright, 0), (Basic(")"), Normal, 0), (Eol, Normal, 0)]
16+
[(Address(44), Normal, 5), (Spacing(4), Normal, 0), (Opcode("addiu", 12), Normal, 10), (Argument(Opaque("$a0")), Normal, 0), (Basic(", "), Normal, 0), (Argument(Opaque("$a0")), Normal, 0), (Basic(", "), Normal, 0), (Basic("%lo("), Normal, 0), (Symbol(Symbol { name: "[.sdata]", demangled_name: None, address: 0, size: 0, kind: Section, section: Some(8), flags: FlagSet(Local), align: None, virtual_address: None }), Bright, 0), (Basic(")"), Normal, 0), (Eol, Normal, 0)]
1717
[(Address(48), Normal, 5), (Spacing(4), Normal, 0), (Opcode("lui", 20), Normal, 10), (Argument(Opaque("$a0")), Normal, 0), (Basic(", "), Normal, 0), (Basic("%hi("), Normal, 0), (Symbol(Symbol { name: "PacketBottomNewVu1DropMicroCode", demangled_name: None, address: 0, size: 12, kind: Object, section: Some(7), flags: FlagSet(Global), align: None, virtual_address: None }), Bright, 0), (Basic(")"), Normal, 0), (Eol, Normal, 0)]
1818
[(Address(52), Normal, 5), (Spacing(4), Normal, 0), (Opcode("lw", 26), Normal, 10), (Argument(Opaque("$a1")), Normal, 0), (Basic(", "), Normal, 0), (Basic("%gp_rel("), Normal, 0), (Symbol(Symbol { name: "WorkEnd", demangled_name: None, address: 64, size: 4, kind: Object, section: Some(8), flags: FlagSet(Global), align: None, virtual_address: None }), Bright, 0), (Basic(")"), Normal, 0), (Basic("("), Normal, 0), (Argument(Opaque("$gp")), Normal, 0), (Basic(")"), Normal, 0), (Eol, Normal, 0)]
1919
[(Address(56), Normal, 5), (Spacing(4), Normal, 0), (Opcode("jal", 2), Normal, 10), (Symbol(Symbol { name: "xglSoundLoadSwd", demangled_name: None, address: 0, size: 0, kind: Unknown, section: None, flags: FlagSet(Global), align: None, virtual_address: None }), Bright, 0), (Eol, Normal, 0)]

objdiff-core/tests/snapshots/arch_mips__read_mips.snap

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Object {
110110
name: "[.sdata]",
111111
demangled_name: None,
112112
address: 0,
113-
size: 76,
113+
size: 0,
114114
kind: Section,
115115
section: Some(
116116
8,
@@ -123,7 +123,7 @@ Object {
123123
name: "[.rodata]",
124124
demangled_name: None,
125125
address: 0,
126-
size: 12,
126+
size: 0,
127127
kind: Section,
128128
section: Some(
129129
7,
@@ -671,6 +671,45 @@ Object {
671671
align: None,
672672
virtual_address: None,
673673
},
674+
Symbol {
675+
name: "[.data-0]",
676+
demangled_name: None,
677+
address: 0,
678+
size: 0,
679+
kind: Section,
680+
section: Some(
681+
2,
682+
),
683+
flags: FlagSet(Local),
684+
align: None,
685+
virtual_address: None,
686+
},
687+
Symbol {
688+
name: "[.rodata-0]",
689+
demangled_name: None,
690+
address: 0,
691+
size: 12,
692+
kind: Section,
693+
section: Some(
694+
7,
695+
),
696+
flags: FlagSet(Local),
697+
align: None,
698+
virtual_address: None,
699+
},
700+
Symbol {
701+
name: "[.sdata-0]",
702+
demangled_name: None,
703+
address: 0,
704+
size: 76,
705+
kind: Section,
706+
section: Some(
707+
8,
708+
),
709+
flags: FlagSet(Local),
710+
align: None,
711+
virtual_address: None,
712+
},
674713
],
675714
sections: [
676715
Section {

objdiff-core/tests/snapshots/arch_ppc__diff_ppc.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
source: objdiff-core/tests/arch_ppc.rs
3-
assertion_line: 70
43
expression: sections_display
54
---
65
[
@@ -37,7 +36,7 @@ expression: sections_display
3736
),
3837
symbols: [
3938
SectionDisplaySymbol {
40-
symbol: 2,
39+
symbol: 16,
4140
is_mapping_symbol: false,
4241
},
4342
],

objdiff-core/tests/snapshots/arch_ppc__read_extab.snap

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Object {
154154
name: "[extab]",
155155
demangled_name: None,
156156
address: 0,
157-
size: 40,
157+
size: 0,
158158
kind: Section,
159159
section: Some(
160160
1,
@@ -167,7 +167,7 @@ Object {
167167
name: "[extabindex]",
168168
demangled_name: None,
169169
address: 0,
170-
size: 36,
170+
size: 0,
171171
kind: Section,
172172
section: Some(
173173
2,
@@ -308,6 +308,32 @@ Object {
308308
align: None,
309309
virtual_address: None,
310310
},
311+
Symbol {
312+
name: "[extab-0]",
313+
demangled_name: None,
314+
address: 0,
315+
size: 40,
316+
kind: Section,
317+
section: Some(
318+
1,
319+
),
320+
flags: FlagSet(Local),
321+
align: None,
322+
virtual_address: None,
323+
},
324+
Symbol {
325+
name: "[extabindex-0]",
326+
demangled_name: None,
327+
address: 0,
328+
size: 36,
329+
kind: Section,
330+
section: Some(
331+
2,
332+
),
333+
flags: FlagSet(Local),
334+
align: None,
335+
virtual_address: None,
336+
},
311337
],
312338
sections: [
313339
Section {

objdiff-core/tests/snapshots/arch_ppc__read_ppc.snap

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Object {
4343
name: "[.ctors]",
4444
demangled_name: None,
4545
address: 0,
46-
size: 4,
46+
size: 0,
4747
kind: Section,
4848
section: Some(
4949
1,
@@ -157,6 +157,19 @@ Object {
157157
0,
158158
),
159159
},
160+
Symbol {
161+
name: "[.ctors-0]",
162+
demangled_name: None,
163+
address: 0,
164+
size: 4,
165+
kind: Section,
166+
section: Some(
167+
1,
168+
),
169+
flags: FlagSet(Local),
170+
align: None,
171+
virtual_address: None,
172+
},
160173
],
161174
sections: [
162175
Section {

0 commit comments

Comments
 (0)