From 952b374196f86c947009f5d8621d78f059591f8a Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Tue, 31 Mar 2020 16:32:35 +0200 Subject: ipc: Panic on GnuPG context creation failure Otherwise it early exits from the tests, wrongly flagging them as successful --- ipc/tests/gpg-agent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/tests/gpg-agent.rs b/ipc/tests/gpg-agent.rs index 5af03024..2e155507 100644 --- a/ipc/tests/gpg-agent.rs +++ b/ipc/tests/gpg-agent.rs @@ -27,7 +27,7 @@ macro_rules! make_context { Err(e) => { eprintln!("SKIP: Failed to create GnuPG context: {}\n\ SKIP: Is GnuPG installed?", e); - return; + panic!(); }, }; match ctx.start("gpg-agent") { @@ -35,7 +35,7 @@ macro_rules! make_context { Err(e) => { eprintln!("SKIP: Failed to create GnuPG context: {}\n\ SKIP: Is the GnuPG agent installed?", e); - return; + panic!(); }, } ctx -- cgit v1.2.3