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
Levin Zimmermann
go-fuse
Commits
723c2b8a
Commit
723c2b8a
authored
Jul 18, 2016
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark some linux-only files as such.
Change-Id: I265108f96471b9b472c29c2d9fbbd1d4dd6b44d0
parent
b5f69ec8
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
18 deletions
+28
-18
fuse/pathfs/syscall_test.go
fuse/pathfs/syscall_test.go
+3
-1
fuse/pathfs/xattr_test.go
fuse/pathfs/xattr_test.go
+2
-0
fuse/test/loopback_linux_test.go
fuse/test/loopback_linux_test.go
+17
-0
fuse/test/loopback_test.go
fuse/test/loopback_test.go
+0
-17
fuse/test/xattr_test.go
fuse/test/xattr_test.go
+4
-0
fuse/test/xfs_test.go
fuse/test/xfs_test.go
+2
-0
No files found.
fuse/pathfs/syscall_test.go
View file @
723c2b8a
// +build linux
package
pathfs
import
(
...
...
@@ -8,7 +10,6 @@ import (
)
func
TestSysUtimensat
(
t
*
testing
.
T
)
{
symlink
:=
"/tmp/TestSysUtimensat"
os
.
Remove
(
symlink
)
err
:=
os
.
Symlink
(
"/nonexisting/file"
,
symlink
)
...
...
@@ -24,6 +25,7 @@ func TestSysUtimensat(t *testing.T) {
ts
[
1
]
.
Nsec
=
3333
ts
[
1
]
.
Sec
=
4444
// Linux specific.
err
=
sysUtimensat
(
0
,
symlink
,
&
ts
,
_AT_SYMLINK_NOFOLLOW
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
fuse/pathfs/xattr_test.go
View file @
723c2b8a
// +build linux
package
pathfs
import
(
...
...
fuse/test/loopback_linux_test.go
View file @
723c2b8a
...
...
@@ -101,3 +101,20 @@ func TestFallocate(t *testing.T) {
fi
.
Size
())
}
}
// Check that "." and ".." exists. syscall.Getdents is linux specific.
func
TestSpecialEntries
(
t
*
testing
.
T
)
{
tc
:=
NewTestCase
(
t
)
defer
tc
.
Cleanup
()
d
,
err
:=
os
.
Open
(
tc
.
mnt
)
if
err
!=
nil
{
t
.
Fatalf
(
"Open failed: %v"
,
err
)
}
defer
d
.
Close
()
buf
:=
make
([]
byte
,
100
)
n
,
err
:=
syscall
.
Getdents
(
int
(
d
.
Fd
()),
buf
)
if
n
==
0
{
t
.
Errorf
(
"directory is empty, entries '.' and '..' are missing"
)
}
}
fuse/test/loopback_test.go
View file @
723c2b8a
...
...
@@ -925,23 +925,6 @@ func TestUmask(t *testing.T) {
}
}
// Check that "." and ".." exists
func
TestSpecialEntries
(
t
*
testing
.
T
)
{
tc
:=
NewTestCase
(
t
)
defer
tc
.
Cleanup
()
d
,
err
:=
os
.
Open
(
tc
.
mnt
)
if
err
!=
nil
{
t
.
Fatalf
(
"Open failed: %v"
,
err
)
}
defer
d
.
Close
()
buf
:=
make
([]
byte
,
100
)
n
,
err
:=
syscall
.
Getdents
(
int
(
d
.
Fd
()),
buf
)
if
n
==
0
{
t
.
Errorf
(
"directory is empty, entries '.' and '..' are missing"
)
}
}
// Check that chgrp(1) works
func
TestChgrp
(
t
*
testing
.
T
)
{
tc
:=
NewTestCase
(
t
)
...
...
fuse/test/xattr_test.go
View file @
723c2b8a
// +build linux
package
test
import
(
...
...
@@ -11,6 +13,8 @@ import (
"github.com/hanwen/go-fuse/fuse/nodefs"
)
// this file is linux-only, since it uses syscall.Getxattr.
type
xattrNode
struct
{
nodefs
.
Node
}
...
...
fuse/test/xfs_test.go
View file @
723c2b8a
// +build linux
package
test
import
(
...
...
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