File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -188,16 +188,21 @@ fn test_crash_tracking_callstack() {
188
188
. context ( "deserializing crashtracker profiling payload to json" )
189
189
. unwrap ( ) ;
190
190
191
+ println ! ( "{:#?}" , crash_payload) ;
191
192
// Note: in Release, we do not have the crate and module name prepended to the function name
192
193
// Here we compile the crashing app in Debug.
193
- let expected_functions: Vec < & str > = [
194
- "crashing_test_app::unix::fn3" ,
194
+ let mut expected_functions = vec ! [
195
195
"crashing_test_app::unix::fn2" ,
196
196
"crashing_test_app::unix::fn1" ,
197
197
"crashing_test_app::unix::main" ,
198
198
"crashing_test_app::main" ,
199
- ]
200
- . to_vec ( ) ;
199
+ ] ;
200
+ // It seems that on arm/arm64, fn3 is inlined in fn2, so not present.
201
+ // Add fn3 only for x86_64 arch
202
+ #[ cfg( target_arch = "x86_64" ) ]
203
+ {
204
+ expected_functions. insert ( 0 , "crashing_test_app::unix::fn3" ) ;
205
+ }
201
206
202
207
let crashing_callstack = & crash_payload[ "error" ] [ "stack" ] [ "frames" ] ;
203
208
assert ! (
You can’t perform that action at this time.
0 commit comments