summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAndrew Ruthven <andrew@etc.gen.nz>2020-07-19 11:25:33 +1200
committerAndrew Ruthven <andrew@etc.gen.nz>2020-07-19 11:25:33 +1200
commitb55266ee77a55db044dcdce9f06985e0c7dca162 (patch)
tree643b19ba5863845ad9c7502245aef5fe0e49abdd /debian
parent1b677d7908392f50636dc0be7acedc55a97dcfd5 (diff)
Fix for an test with a false failure
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/test-allow-interface-to-fail27
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series
index 6dc2737..f03098a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
reset_version_on_call_change
test-gnupg1
+test-allow-interface-to-fail
diff --git a/debian/patches/test-allow-interface-to-fail b/debian/patches/test-allow-interface-to-fail
new file mode 100644
index 0000000..f925365
--- /dev/null
+++ b/debian/patches/test-allow-interface-to-fail
@@ -0,0 +1,27 @@
+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;
+ };