1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Allow setting the call program to fail
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.
Author: Andrew Ruthven <andrew@etc.gen.nz>
Bug: https://rt.cpan.org/Ticket/Display.html?id=133021
Last-Update: 2020-07-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/t/Interface.t
+++ b/t/Interface.t
@@ -24,6 +24,10 @@
# 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;
};
|