summaryrefslogtreecommitdiff
path: root/fml/lib/IO/t/group_add.pl
blob: fe6e020d81b5a0b8409cf8c464d2f47955aa7042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#-*- perl -*-
#
#  Copyright (C) 2001,2002,2006 Ken'ichi Fukamachi
#   All rights reserved. This program is free software; you can
#   redistribute it and/or modify it under the same terms as Perl itself.
#
# $FML: append.pl,v 1.6 2002/04/01 23:41:14 fukachan Exp $
#

use strict;
use Carp;
use FML::Test::Utils;

my $map  = 'unix.group:fml';

my $tool = new FML::Test::Utils;
$tool->set_title("group add ($map)");

use IO::Adapter;
my $obj = new IO::Adapter $map;
eval q{ $obj->add( $buffer ); };
if ($@) {
    $tool->print_ok(); # XXX fail (non null $@) is ok here.
}
else {
    $tool->print_error($obj->error());
}

exit 0;