diff options
| author | fukachan <fukachan> | 2001-03-11 11:05:53 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-03-11 11:05:53 +0000 |
| commit | 039637ec253de6fd028f67dc237103f96f4f2b96 (patch) | |
| tree | b3dde3dc7254fe61ad6b47be34c9a8349a46ae20 /fml/lib/IO | |
| parent | dd09336a2cf42110ae118053327931404226b2ed (diff) | |
| download | fml8-039637ec253de6fd028f67dc237103f96f4f2b96.tar.gz fml8-039637ec253de6fd028f67dc237103f96f4f2b96.tar.bz2 fml8-039637ec253de6fd028f67dc237103f96f4f2b96.zip | |
check unix.group fail or not
Diffstat (limited to 'fml/lib/IO')
| -rwxr-xr-x | fml/lib/IO/t/append.pl | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/fml/lib/IO/t/append.pl b/fml/lib/IO/t/append.pl index 6b928d7b..86a6b8e5 100755 --- a/fml/lib/IO/t/append.pl +++ b/fml/lib/IO/t/append.pl @@ -18,12 +18,11 @@ my $buffer = time . $$ . "aho "; ### MAIN ### -print "file map ->add() "; +print "${map}->add() "; # prepare system "cp $org_file /tmp/"; - # append use IO::MapAdapter; my $obj = new IO::MapAdapter $map; @@ -44,6 +43,20 @@ else { system "diff -ub $org_file $file"; } + +$map = 'unix.group:fml'; +print "${map}->add() ... "; +$obj = new IO::MapAdapter $map; +eval q{ $obj->add( $buffer ); }; +if ($@) { + print "ok\n"; # XXX fail (non null $@) is ok here. +} +else { + print "fail" unless $@; + print "<", $obj->error, ">" if $obj->error; + print "\n"; +} + exit 0; |
