Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ nix = { version = "0.25", default-features = false, features = [
] }

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.36"
version = "0.42"
features = [
# MiniDumpWriteDump requires...a lot of features
"Win32_Foundation",
Expand Down
10 changes: 9 additions & 1 deletion tests/linux_minidump_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,15 @@ fn test_minidump_size_limit() {
// first make sure that "minidump_size_limit" above is indeed set to a
// large enough value -- the limit-checking code in minidump_writer.rs
// does just a rough estimate.
assert_eq!(meta.len(), normal_file_size);
// TODO: Fix this properly
// There are occasionally CI failures where the sizes are off by 1 due
// some minor difference in (probably) a string somewhere in the dump
// since the state capture is not going to be 100% the same
//assert_eq!(meta.len(), normal_file_size);
let min = std::cmp::min(meta.len(), normal_file_size);
let max = std::cmp::max(meta.len(), normal_file_size);

assert!(max - min < 10);
}

// Third, write a minidump with a size limit small enough to be triggered.
Expand Down