diff options
Diffstat (limited to 'debian/patches/test-allow-interface-to-fail')
-rw-r--r-- | debian/patches/test-allow-interface-to-fail | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/test-allow-interface-to-fail b/debian/patches/test-allow-interface-to-fail new file mode 100644 index 0000000..d8db0a7 --- /dev/null +++ b/debian/patches/test-allow-interface-to-fail @@ -0,0 +1,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; + }; |