diff options
author | Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> | 2021-02-10 22:50:05 +0100 |
---|---|---|
committer | Dominic Hargreaves <dom@earth.li> | 2021-02-10 22:50:05 +0100 |
commit | f34d48b32e1bb7cc28d6788ee60a6785d548affd (patch) | |
tree | b6eabc908ae170935e666f50e3fd030629c74dd7 | |
parent | 887f7d7106bee7c96eb5f7faa5ccfde8de9ccab6 (diff) |
Test that Taint mode works
Bug: https://rt.cpan.org/Ticket/Display.html?id=133041
Last-Update: 2021-01-28
Gbp-Pq: Name detect-taint-mode
-rw-r--r-- | t/taint.t | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/t/taint.t b/t/taint.t new file mode 100644 index 0000000..b9d8df8 --- /dev/null +++ b/t/taint.t @@ -0,0 +1,26 @@ +#!/usr/bin/perl -wT +# +# Ensure we can instatiate in Taint mode. Don't need to +# do any work, as GnuPG::Interface runs the command we're going +# to use to detect the version. + +use strict; + +use lib './t'; +use MyTest; + +use GnuPG::Interface; + +my $gnupg; + +# See that we instantiate an object in Taint mode +TEST +{ + $gnupg = GnuPG::Interface->new( call => '/usr/bin/gpg' ); +}; + +# See that version is set +TEST +{ + defined $gnupg->version; +}; |