diff options
author | Andrew Ruthven <andrew@etc.gen.nz> | 2021-08-18 04:12:35 +0200 |
---|---|---|
committer | Andrew Ruthven <andrew@etc.gen.nz> | 2021-08-18 04:12:35 +0200 |
commit | b8bf63a32acdb4f7ff6a1973e7b18cee58bf6d9e (patch) | |
tree | 3688b3523ee03de45b7882e7f5368f6ed00e245e | |
parent | e098661ed8aa9e71eaa8a8e456df974b231fc3af (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; }; |