From 9e054cf59dba2cb6612da745d663ab74be7fb3a7 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sun, 26 Feb 2017 17:39:25 +0300 Subject: [PATCH] Fix tests on Windows in Debug configuration (#4) --- src/libstd/sys_common/backtrace.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libstd/sys_common/backtrace.rs b/src/libstd/sys_common/backtrace.rs index 08801f543ef8c..476f9afa27d28 100644 --- a/src/libstd/sys_common/backtrace.rs +++ b/src/libstd/sys_common/backtrace.rs @@ -106,8 +106,10 @@ fn filter_frames(frames: &[Frame], static BAD_PREFIXES_TOP: &'static [&'static str] = &[ "_ZN3std3sys3imp9backtrace", "ZN3std3sys3imp9backtrace", + "std::sys::imp::backtrace", "_ZN3std10sys_common9backtrace", "ZN3std10sys_common9backtrace", + "std::sys_common::backtrace", "_ZN3std9panicking", "ZN3std9panicking", "std::panicking", @@ -116,6 +118,7 @@ fn filter_frames(frames: &[Frame], "core::panicking", "_ZN4core6result13unwrap_failed", "ZN4core6result13unwrap_failed", + "core::result::unwrap_failed", "rust_begin_unwind", "_ZN4drop", "mingw_set_invalid_parameter_handler", @@ -129,6 +132,8 @@ fn filter_frames(frames: &[Frame], "core::panicking", "_ZN3std2rt10lang_start", "ZN3std2rt10lang_start", + "std::rt::lang_start", + "panic_unwind::__rust_maybe_catch_panic", "__rust_maybe_catch_panic", "_rust_maybe_catch_panic", "__libc_start_main", @@ -136,6 +141,7 @@ fn filter_frames(frames: &[Frame], "_start", "main", "BaseThreadInitThunk", + "RtlInitializeExceptionChain", "__scrt_common_main_seh", "_ZN4drop", "mingw_set_invalid_parameter_handler",