/[fuse.before_github]/branches/xattr/test/xattr.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /branches/xattr/test/xattr.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 115 - (show annotations)
Thu Dec 6 10:53:37 2007 UTC (16 years, 4 months ago) by dpavlin
File MIME type: application/x-troff
File size: 454 byte(s)
first step to make XATTR_CREATE and XATTR_REPLACE to C so that we
have correct constants from include files
1 #!/usr/bin/perl
2 use test::helper qw($_real $_point);
3 use Test::More;
4 plan tests => 4;
5 use English;
6
7 chdir($_real);
8 SKIP: {
9 skip('Need root to test xattr', 4) unless ($UID == 0);
10
11 system('echo foo > xattr');
12 ok( -e 'xattr', 'created xattr' );
13 system('attr -s attr -V val xattr');
14 ok(open(FILE, 'attr -g attr xattr |'), 'open');
15 my ($data) = <FILE>;
16 ok($data, "got $data");
17 diag "attr = $data";
18 unlink("xattr");
19 ok( ! -e 'xattr', 'cleanup' );
20 }

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26