diff options
author | Andrew Ruthven <andrew@etc.gen.nz> | 2021-02-10 22:50:05 +0100 |
---|---|---|
committer | Dominic Hargreaves <dom@earth.li> | 2021-02-10 22:50:05 +0100 |
commit | 30b35e9cdd6efc2e3e2899397295736badee24bf (patch) | |
tree | 6889475ff597c832871089625b240a40b85fb7e9 | |
parent | 432b3f12cf96b2be326f70b60c0fbd3fd5ff924c (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.t | 6 |
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; }; |