blob: c3ec16f66ec63b7b5dc8d2ee020b44cf8a324694 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/perl -w
use strict;
use English qw( -no_match_vars );
use lib './t';
use MyTest;
use MyTestSpecific;
use File::Path qw (remove_tree);
# this is actually no test, just cleanup.
TEST
{
my $homedir = $gnupg->options->homedir();
my $err = [];
# kill off any long-lived gpg-agent, ignoring errors:
system('gpgconf', '--homedir', $homedir, '--quiet', '--kill', 'gpg-agent');
remove_tree($homedir, {error => \$err});
unlink('test/gnupghome');
return ! @$err;
};
|