summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Matuszewski <igor@sequoia-pgp.org>2020-03-31 16:32:35 +0200
committerIgor Matuszewski <igor@sequoia-pgp.org>2020-04-05 21:25:39 +0200
commit952b374196f86c947009f5d8621d78f059591f8a (patch)
tree6adbf07e0266fb2bd6bdb9fbd9716a3b81e1ea6e
parent488985f8f2e119c553f2d03d8bd87d49f45d8227 (diff)
ipc: Panic on GnuPG context creation failure
Otherwise it early exits from the tests, wrongly flagging them as successful
-rw-r--r--ipc/tests/gpg-agent.rs4
1 files 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