diff options
author | Andrew Ruthven <andrew@etc.gen.nz> | 2023-12-15 22:14:01 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2023-12-15 22:14:01 +0100 |
commit | a30fa6734d83483431539cb5362d0ee0f1a0ff57 (patch) | |
tree | 4fed40e4239081b5055bb7f8f149861b6a57797b | |
parent | a5814a7f98737594019f8e8fd0f941a60d486294 (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; }; |