Skip to content

Commit

Permalink
tests(backtraces) update backtrace formats for latest Rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Apr 19, 2024
1 parent 1d4534d commit 7ee4eb4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions t/01-wasm/directives/006-backtraces_directive.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ qq{
qr# 7: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!hostcalls::filter::<impl proxy_wasm::traits::HttpContext for hostcalls::types::test_http::TestHttp>::on_http_request_headers::h[0-9a-f]+#,
qr# 8: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!proxy_wasm::dispatcher::Dispatcher::on_http_request_headers::h[0-9a-f]+#,
qr# 9: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!proxy_on_request_headers#,
qr#note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging informatio#,
qr#(note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information)?#,
qr#^$#,
qr#Caused by:#,
qr# wasm trap: wasm `unreachable` instruction executed#,
Expand Down Expand Up @@ -104,13 +104,13 @@ qq{
qr/\[crit\] .*? panicked at/,
qr/custom trap/,
qr/\[error\] .*? \[wasm\] error while executing at wasm backtrace:/,
qr# 0: 0x[0-9a-f]+ - .*?abort#,
qr# at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+ *- __rust_start_panic#,
qr# at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+#,
qr# 0: 0x[0-9a-f]+ - .*?(abort|__rust_start_panic)#,
qr#( at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+ *- __rust_start_panic)?#,
qr#( at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+)?#,
qr# 1: 0x[0-9a-f]+ - .*?rust_panic#,
qr# at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+#,
qr#( at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+)?#,
qr# 2: 0x[0-9a-f]+ - .*?rust_panic_with_hook#,
qr# at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+#,
qr#( at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+)?#,
qr# 3: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!std::panicking::begin_panic::\{\{closure\}\}::h[0-9a-f]+#,
qr# 4: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!std::sys_common::backtrace::__rust_end_short_backtrace::h[0-9a-f]+#,
qr# 5: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!std::panicking::begin_panic::h[0-9a-f]+#,
Expand Down Expand Up @@ -158,13 +158,13 @@ qq{
qr/\[crit\] .*? panicked at/,
qr/custom trap/,
qr/\[error\] .*? \[wasm\] error while executing at wasm backtrace:/,
qr# 0: 0x[0-9a-f]+ - .*?abort#,
qr# at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+ *- __rust_start_panic#,
qr# at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+#,
qr# 0: 0x[0-9a-f]+ - .*?(abort|__rust_start_panic)#,
qr#( at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+ *- __rust_start_panic)?#,
qr#( at /rustc/[0-9a-f]+/library/panic_abort/src/lib.rs:[0-9]+:[0-9]+)?#,
qr# 1: 0x[0-9a-f]+ - .*?rust_panic#,
qr# at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+#,
qr#( at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+)?#,
qr# 2: 0x[0-9a-f]+ - .*?rust_panic_with_hook#,
qr# at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+#,
qr#( at /rustc/[0-9a-f]+/library/std/src/panicking.rs:[0-9]+:[0-9]+)?#,
qr# 3: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!std::panicking::begin_panic::\{\{closure\}\}::h[0-9a-f]+#,
qr# 4: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!std::sys_common::backtrace::__rust_end_short_backtrace::h[0-9a-f]+#,
qr# 5: 0x[0-9a-f]+ - (<unknown>|hostcalls\.wasm)!std::panicking::begin_panic::h[0-9a-f]+#,
Expand Down

0 comments on commit 7ee4eb4

Please sign in to comment.