blob: df7eab4de3c6fa2863add1a04408ea9212220d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use Test::More;
use lib 'lib';
use_ok 'Exim::Runtest';
can_ok 'Exim::Runtest', qw(mailgroup);
my $group = getgrgid $(;
ok $group => 'got a group name';
diag "use group $group";
is Exim::Runtest::mailgroup($group), $group => 'group names match';
ok $group = Exim::Runtest::mailgroup('non existing group') => 'cope with unknown group';
diag "got random group: $group";
ok getgrnam($group) => 'got an existing group';
done_testing;
|