@@ -53,6 +53,14 @@ fn test_hardcoded_snapshot_deserialization() {
5353 0xAA ,
5454 #[ cfg( target_arch = "aarch64" ) ]
5555 0xAA ,
56+ #[ cfg( target_arch = "powerpc64" ) ]
57+ 0x64 ,
58+ #[ cfg( target_arch = "powerpc64" ) ]
59+ 0xCC ,
60+ #[ cfg( target_arch = "riscv64" ) ]
61+ 0x64 ,
62+ #[ cfg( target_arch = "riscv64" ) ]
63+ 0xC5 ,
5664 #[ cfg( target_arch = "x86_64" ) ]
5765 0x64 ,
5866 #[ cfg( target_arch = "x86_64" ) ]
@@ -75,10 +83,19 @@ fn test_hardcoded_snapshot_deserialization() {
7583 0xAA ,
7684 #[ cfg( target_arch = "aarch64" ) ]
7785 0xAA ,
86+ #[ cfg( target_arch = "powerpc64" ) ]
87+ 0x64 ,
88+ #[ cfg( target_arch = "powerpc64" ) ]
89+ 0xCC ,
90+ #[ cfg( target_arch = "riscv64" ) ]
91+ 0x64 ,
92+ #[ cfg( target_arch = "riscv64" ) ]
93+ 0xC5 ,
7894 #[ cfg( target_arch = "x86_64" ) ]
7995 0x64 ,
8096 #[ cfg( target_arch = "x86_64" ) ]
81- 0x86 , 0x84 , 0x19 , 0x10 , 0x07 ,
97+ 0x86 ,
98+ 0x84 , 0x19 , 0x10 , 0x07 ,
8299 // Version 2 +
83100 0x02 , 0x00 ,
84101 // `a` field +
@@ -129,6 +146,14 @@ fn test_invalid_format_version() {
129146 0xAA ,
130147 #[ cfg( target_arch = "aarch64" ) ]
131148 0xAA ,
149+ #[ cfg( target_arch = "powerpc64" ) ]
150+ 0x64 ,
151+ #[ cfg( target_arch = "powerpc64" ) ]
152+ 0xCC ,
153+ #[ cfg( target_arch = "riscv64" ) ]
154+ 0x64 ,
155+ #[ cfg( target_arch = "riscv64" ) ]
156+ 0xC5 ,
132157 #[ cfg( target_arch = "x86_64" ) ]
133158 0x64 ,
134159 #[ cfg( target_arch = "x86_64" ) ]
@@ -156,6 +181,14 @@ fn test_invalid_format_version() {
156181 0xAA ,
157182 #[ cfg( target_arch = "aarch64" ) ]
158183 0xAA ,
184+ #[ cfg( target_arch = "powerpc64" ) ]
185+ 0x64 ,
186+ #[ cfg( target_arch = "powerpc64" ) ]
187+ 0xCC ,
188+ #[ cfg( target_arch = "riscv64" ) ]
189+ 0x64 ,
190+ #[ cfg( target_arch = "riscv64" ) ]
191+ 0xC5 ,
159192 #[ cfg( target_arch = "x86_64" ) ]
160193 0x64 ,
161194 #[ cfg( target_arch = "x86_64" ) ]
@@ -185,6 +218,14 @@ fn test_invalid_data_version() {
185218 0xAA ,
186219 #[ cfg( target_arch = "aarch64" ) ]
187220 0xAA ,
221+ #[ cfg( target_arch = "powerpc64" ) ]
222+ 0x64 ,
223+ #[ cfg( target_arch = "powerpc64" ) ]
224+ 0xCC ,
225+ #[ cfg( target_arch = "riscv64" ) ]
226+ 0x64 ,
227+ #[ cfg( target_arch = "riscv64" ) ]
228+ 0xC5 ,
188229 #[ cfg( target_arch = "x86_64" ) ]
189230 0x64 ,
190231 #[ cfg( target_arch = "x86_64" ) ]
@@ -211,6 +252,14 @@ fn test_invalid_data_version() {
211252 0xAA ,
212253 #[ cfg( target_arch = "aarch64" ) ]
213254 0xAA ,
255+ #[ cfg( target_arch = "powerpc64" ) ]
256+ 0x64 ,
257+ #[ cfg( target_arch = "powerpc64" ) ]
258+ 0xCC ,
259+ #[ cfg( target_arch = "riscv64" ) ]
260+ 0x64 ,
261+ #[ cfg( target_arch = "riscv64" ) ]
262+ 0xC5 ,
214263 #[ cfg( target_arch = "x86_64" ) ]
215264 0x64 ,
216265 #[ cfg( target_arch = "x86_64" ) ]
0 commit comments