From d375a6d2c6f031e7c5b602975038992687040d85 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 7 Oct 2016 18:26:48 +0200 Subject: [PATCH] Add output to test helper, so we can see in the trace whats happening --- libimagstore/src/store.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 919b6f50..4172b4b2 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -2502,12 +2502,16 @@ mod store_hook_tests { } fn get_result(succeed: bool, abort: bool) -> HookResult<()> { + println!("Generting result: succeed = {}, abort = {}", succeed, abort); if succeed { + println!("Generating result: Ok(())"); Ok(()) } else { if abort { + println!("Generating result: Err(_), aborting"); Err(HEK::HookExecutionError.into_error()) } else { + println!("Generating result: Err(_), not aborting"); let custom = CustomData::default().aborting(false); Err(HEK::HookExecutionError.into_error().with_custom_data(custom)) }