Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-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
go-fuse
Commits
97d9f0ed
Commit
97d9f0ed
authored
Feb 22, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests for weekly 2012.02.14 too.
parent
20f160cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
fuse/fsetattr_test.go
fuse/fsetattr_test.go
+1
-1
fuse/loopback_test.go
fuse/loopback_test.go
+4
-4
fuse/misc_test.go
fuse/misc_test.go
+1
-1
No files found.
fuse/fsetattr_test.go
View file @
97d9f0ed
...
...
@@ -162,7 +162,7 @@ func TestFSetAttr(t *testing.T) {
_
,
err
=
f
.
WriteString
(
"hello"
)
CheckSuccess
(
err
)
code
:=
syscall
.
Ftruncate
(
f
.
Fd
(
),
3
)
code
:=
syscall
.
Ftruncate
(
int
(
f
.
Fd
()
),
3
)
if
code
!=
nil
{
t
.
Error
(
"truncate retval"
,
os
.
NewSyscallError
(
"Ftruncate"
,
code
))
}
...
...
fuse/loopback_test.go
View file @
97d9f0ed
...
...
@@ -519,7 +519,7 @@ func TestFSync(t *testing.T) {
CheckSuccess
(
err
)
// How to really test fsync ?
errNo
:=
syscall
.
Fsync
(
f
.
Fd
(
))
errNo
:=
syscall
.
Fsync
(
int
(
f
.
Fd
()
))
if
errNo
!=
nil
{
t
.
Errorf
(
"fsync returned %v"
,
errNo
)
}
...
...
@@ -678,7 +678,7 @@ func TestIoctl(t *testing.T) {
os
.
O_WRONLY
|
os
.
O_CREATE
,
0777
)
defer
f
.
Close
()
CheckSuccess
(
err
)
ioctl
(
f
.
Fd
(
),
0x5401
,
42
)
ioctl
(
int
(
f
.
Fd
()
),
0x5401
,
42
)
}
func
clearStatfs
(
s
*
syscall
.
Statfs_t
)
{
...
...
@@ -727,7 +727,7 @@ func TestFStatFs(t *testing.T) {
empty
:=
syscall
.
Statfs_t
{}
s1
:=
empty
errno
:=
syscall
.
Fstatfs
(
fOrig
.
Fd
(
),
&
s1
)
errno
:=
syscall
.
Fstatfs
(
int
(
fOrig
.
Fd
()
),
&
s1
)
if
errno
!=
nil
{
t
.
Fatal
(
"statfs orig"
,
err
)
}
...
...
@@ -737,7 +737,7 @@ func TestFStatFs(t *testing.T) {
defer
fMnt
.
Close
()
s2
:=
empty
errno
=
syscall
.
Fstatfs
(
fMnt
.
Fd
(
),
&
s2
)
errno
=
syscall
.
Fstatfs
(
int
(
fMnt
.
Fd
()
),
&
s2
)
if
errno
!=
nil
{
t
.
Fatal
(
"statfs mnt"
,
err
)
}
...
...
fuse/misc_test.go
View file @
97d9f0ed
...
...
@@ -30,7 +30,7 @@ func TestLinkAt(t *testing.T) {
dir
,
_
:=
ioutil
.
TempDir
(
""
,
"go-fuse"
)
ioutil
.
WriteFile
(
dir
+
"/a"
,
[]
byte
{
42
},
0644
)
f
,
_
:=
os
.
Open
(
dir
)
e
:=
Linkat
(
f
.
Fd
(),
"a"
,
f
.
Fd
(
),
"b"
)
e
:=
Linkat
(
int
(
f
.
Fd
()),
"a"
,
int
(
f
.
Fd
()
),
"b"
)
if
e
!=
0
{
t
.
Fatalf
(
"Linkat %d"
,
e
)
}
...
...
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