| 1 |
Description: Allow setting the call program to fail |
| 2 |
This test is checking that the old setter/getter interface |
| 3 |
works. My fix to resetting the version causes this test to |
| 4 |
fail on Debian as we have no binary called 'gnupg'. Since |
| 5 |
the test is testing the setter/getter we don't care if |
| 6 |
loading the version fails. |
| 7 |
Author: Andrew Ruthven <[email protected]> |
| 8 |
Bug: https://rt.cpan.org/Ticket/Display.html?id=133021 |
| 9 |
Last-Update: 2020-07-19 |
| 10 |
|
| 11 |
--- |
| 12 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 13 |
--- a/t/Interface.t |
| 14 |
+++ b/t/Interface.t |
| 15 |
@@ -24,6 +24,10 @@ |
| 16 |
# deprecation test |
| 17 |
TEST |
| 18 |
{ |
| 19 |
- $gnupg->gnupg_call( $v2 ); |
| 20 |
+ # Setting the program to call now calls the program to |
| 21 |
+ # determine the version, but if gnupg doesn't exist we |
| 22 |
+ # can't run it. Since we're just checking that call() |
| 23 |
+ # has changed, let setting the variable fail. |
| 24 |
+ eval { $gnupg->gnupg_call( $v2 ) }; |
| 25 |
$gnupg->call() eq $v2; |
| 26 |
}; |