mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-26 20:40:49 +00:00
fix: different call machinery between linux and windows
This filters out diverging backtraces caused by different before-main and test calling machinery on windows and linux
This commit is contained in:
parent
39ec86532c
commit
4d6e73e5a9
@ -170,7 +170,12 @@ fn test_backwards_compatibility(target: String, file_name: &str) {
|
||||
fn normalize_backtrace(input: &str) -> String {
|
||||
input
|
||||
.lines()
|
||||
.take_while(|v| !v.contains("core::panic") && !v.contains("theme_test_helper::main"))
|
||||
.take_while(|v| {
|
||||
!v.contains("core::panic")
|
||||
&& !v.contains("theme_test_helper::main")
|
||||
&& !v.contains("theme::test_error_backwards_compatibility::closure")
|
||||
&& !v.contains("theme::test_error_backwards_compatibility::{{closure}}")
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user