Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
3eadae84
Commit
3eadae84
authored
Mar 17, 2017
by
Ka-Hing Cheung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use constants from upstream PR
parent
d650fe34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
samples/memfs/memfs_test.go
samples/memfs/memfs_test.go
+5
-5
No files found.
samples/memfs/memfs_test.go
View file @
3eadae84
...
...
@@ -27,13 +27,13 @@ import (
"testing"
"time"
"github.com/ivaxer/go-xattr"
"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/fusetesting"
"github.com/jacobsa/fuse/samples"
"github.com/jacobsa/fuse/samples/memfs"
.
"github.com/jacobsa/oglematchers"
.
"github.com/jacobsa/ogletest"
"github.com/kahing/go-xattr"
)
func
TestMemFS
(
t
*
testing
.
T
)
{
RunTests
(
t
)
}
...
...
@@ -1637,17 +1637,17 @@ func (t *MemFSTest) SetXAttr() {
err
=
ioutil
.
WriteFile
(
filePath
,
[]
byte
(
"taco"
),
0600
)
AssertEq
(
nil
,
err
)
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"bar"
),
0x2
)
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"bar"
),
xattr
.
REPLACE
)
AssertEq
(
fuse
.
ENOATTR
,
err
)
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"bar"
),
0x1
)
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"bar"
),
xattr
.
CREATE
)
AssertEq
(
nil
,
err
)
value
,
err
:=
xattr
.
Get
(
filePath
,
"foo"
)
AssertEq
(
nil
,
err
)
AssertEq
(
"bar"
,
string
(
value
))
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"hello world"
),
0x2
)
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"hello world"
),
xattr
.
REPLACE
)
AssertEq
(
nil
,
err
)
value
,
err
=
xattr
.
Get
(
filePath
,
"foo"
)
...
...
@@ -1680,7 +1680,7 @@ func (t *MemFSTest) RemoveXAttr() {
err
=
xattr
.
Removexattr
(
filePath
,
"foo"
)
AssertEq
(
fuse
.
ENOATTR
,
err
)
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"bar"
),
0x1
)
err
=
xattr
.
Setxattr
(
filePath
,
"foo"
,
[]
byte
(
"bar"
),
xattr
.
CREATE
)
AssertEq
(
nil
,
err
)
err
=
xattr
.
Removexattr
(
filePath
,
"foo"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment