summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ruthven <andrew@etc.gen.nz>2022-10-13 22:45:17 +0200
committerJelmer Vernooij <jelmer@debian.org>2022-10-13 22:45:17 +0200
commit51fb9382393ab11d3a860528afd696ee4d10fa22 (patch)
tree3cd25d08154885d33ba290e5c5d3d0ce32dad81b
parent2822fe487078e805ce4806743165642036e1a13f (diff)
Allow setting the call program to fail
Bug: https://rt.cpan.org/Ticket/Display.html?id=133021 Last-Update: 2020-07-19 This test is checking that the old setter/getter interface works. My fix to resetting the version causes this test to fail on Debian as we have no binary called 'gnupg'. Since the test is testing the setter/getter we don't care if loading the version fails. Gbp-Pq: Name test-allow-interface-to-fail
-rw-r--r--t/Interface.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/Interface.t b/t/Interface.t
index ec5dfe5..3ebdb7f 100644
--- a/t/Interface.t
+++ b/t/Interface.t
@@ -24,6 +24,10 @@ TEST
# deprecation test
TEST
{
- $gnupg->gnupg_call( $v2 );
+ # Setting the program to call now calls the program to
+ # determine the version, but if gnupg doesn't exist we
+ # can't run it. Since we're just checking that call()
+ # has changed, let setting the variable fail.
+ eval { $gnupg->gnupg_call( $v2 ) };
$gnupg->call() eq $v2;
};