From 685095a574c0e0c3053f631ca5024e5c166207ef Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Mon, 3 Apr 2023 13:05:28 +0200 Subject: [PATCH] More fixup --- tests/windows_minidump_writer.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/windows_minidump_writer.rs b/tests/windows_minidump_writer.rs index aeccb942..5b13e346 100644 --- a/tests/windows_minidump_writer.rs +++ b/tests/windows_minidump_writer.rs @@ -36,8 +36,13 @@ fn dump_current_process() { .tempfile() .unwrap(); - MinidumpWriter::dump_local_context(Some(STATUS_INVALID_PARAMETER), None, tmpfile.as_file_mut()) - .expect("failed to write minidump"); + MinidumpWriter::dump_local_context( + Some(STATUS_INVALID_PARAMETER), + None, + None, + tmpfile.as_file_mut(), + ) + .expect("failed to write minidump"); let md = Minidump::read_path(tmpfile.path()).expect("failed to read minidump"); @@ -84,6 +89,7 @@ fn dump_specific_thread() { MinidumpWriter::dump_local_context( Some(STATUS_INVALID_PARAMETER), Some(crashing_thread_id), + None, tmpfile.as_file_mut(), ) .expect("failed to write minidump"); @@ -141,6 +147,7 @@ fn dump_external_process() { (process_id, exception_pointers, thread_id, exception_code) }; + let exception_code = exception_code as i32; assert_eq!(exception_code, EXCEPTION_ILLEGAL_INSTRUCTION); let crash_context = crash_context::CrashContext { @@ -157,7 +164,7 @@ fn dump_external_process() { // SAFETY: We keep the process we are dumping alive until the minidump is written // and the test process keep the pointers it sent us alive until it is killed - MinidumpWriter::dump_crash_context(crash_context, tmpfile.as_file_mut()) + MinidumpWriter::dump_crash_context(crash_context, tmpfile.as_file_mut(), None) .expect("failed to write minidump"); child.kill().expect("failed to kill child");