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
0de6a433
Commit
0de6a433
authored
Jan 14, 2016
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary t.Log statements.
parent
f5ebef94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
fuse/test/loopback_test.go
fuse/test/loopback_test.go
+0
-6
fuse/test/mount_test.go
fuse/test/mount_test.go
+0
-4
No files found.
fuse/test/loopback_test.go
View file @
0de6a433
...
@@ -397,7 +397,6 @@ func TestSymlink(t *testing.T) {
...
@@ -397,7 +397,6 @@ func TestSymlink(t *testing.T) {
tc
:=
NewTestCase
(
t
)
tc
:=
NewTestCase
(
t
)
defer
tc
.
Cleanup
()
defer
tc
.
Cleanup
()
t
.
Log
(
"testing symlink/readlink."
)
contents
:=
[]
byte
{
1
,
2
,
3
}
contents
:=
[]
byte
{
1
,
2
,
3
}
tc
.
WriteFile
(
tc
.
origFile
,
[]
byte
(
contents
),
0700
)
tc
.
WriteFile
(
tc
.
origFile
,
[]
byte
(
contents
),
0700
)
...
@@ -457,8 +456,6 @@ func TestDelRename(t *testing.T) {
...
@@ -457,8 +456,6 @@ func TestDelRename(t *testing.T) {
tc
:=
NewTestCase
(
t
)
tc
:=
NewTestCase
(
t
)
defer
tc
.
Cleanup
()
defer
tc
.
Cleanup
()
t
.
Log
(
"Testing del+rename."
)
sd
:=
tc
.
mnt
+
"/testDelRename"
sd
:=
tc
.
mnt
+
"/testDelRename"
tc
.
Mkdir
(
sd
,
0755
)
tc
.
Mkdir
(
sd
,
0755
)
...
@@ -486,8 +483,6 @@ func TestOverwriteRename(t *testing.T) {
...
@@ -486,8 +483,6 @@ func TestOverwriteRename(t *testing.T) {
tc
:=
NewTestCase
(
t
)
tc
:=
NewTestCase
(
t
)
defer
tc
.
Cleanup
()
defer
tc
.
Cleanup
()
t
.
Log
(
"Testing rename overwrite."
)
sd
:=
tc
.
mnt
+
"/testOverwriteRename"
sd
:=
tc
.
mnt
+
"/testOverwriteRename"
tc
.
Mkdir
(
sd
,
0755
)
tc
.
Mkdir
(
sd
,
0755
)
...
@@ -535,7 +530,6 @@ func TestMknod(t *testing.T) {
...
@@ -535,7 +530,6 @@ func TestMknod(t *testing.T) {
tc
:=
NewTestCase
(
t
)
tc
:=
NewTestCase
(
t
)
defer
tc
.
Cleanup
()
defer
tc
.
Cleanup
()
t
.
Log
(
"Testing mknod."
)
if
errNo
:=
syscall
.
Mknod
(
tc
.
mountFile
,
syscall
.
S_IFIFO
|
0777
,
0
);
errNo
!=
nil
{
if
errNo
:=
syscall
.
Mknod
(
tc
.
mountFile
,
syscall
.
S_IFIFO
|
0777
,
0
);
errNo
!=
nil
{
t
.
Errorf
(
"Mknod %v"
,
errNo
)
t
.
Errorf
(
"Mknod %v"
,
errNo
)
}
}
...
...
fuse/test/mount_test.go
View file @
0de6a433
...
@@ -106,7 +106,6 @@ func TestRecursiveMount(t *testing.T) {
...
@@ -106,7 +106,6 @@ func TestRecursiveMount(t *testing.T) {
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"Open failed: %v"
,
err
)
t
.
Fatalf
(
"Open failed: %v"
,
err
)
}
}
t
.
Log
(
"Attempting unmount, should fail"
)
code
=
ts
.
pathFs
.
Unmount
(
"mnt"
)
code
=
ts
.
pathFs
.
Unmount
(
"mnt"
)
if
code
!=
fuse
.
EBUSY
{
if
code
!=
fuse
.
EBUSY
{
t
.
Error
(
"expect EBUSY"
)
t
.
Error
(
"expect EBUSY"
)
...
@@ -116,7 +115,6 @@ func TestRecursiveMount(t *testing.T) {
...
@@ -116,7 +115,6 @@ func TestRecursiveMount(t *testing.T) {
t
.
Log
(
"Waiting for kernel to flush file-close to fuse..."
)
t
.
Log
(
"Waiting for kernel to flush file-close to fuse..."
)
time
.
Sleep
(
testTtl
)
time
.
Sleep
(
testTtl
)
t
.
Log
(
"Attempting unmount, should succeed"
)
code
=
ts
.
pathFs
.
Unmount
(
"mnt"
)
code
=
ts
.
pathFs
.
Unmount
(
"mnt"
)
if
code
!=
fuse
.
OK
{
if
code
!=
fuse
.
OK
{
t
.
Error
(
"umount failed."
,
code
)
t
.
Error
(
"umount failed."
,
code
)
...
@@ -138,13 +136,11 @@ func TestDeletedUnmount(t *testing.T) {
...
@@ -138,13 +136,11 @@ func TestDeletedUnmount(t *testing.T) {
t
.
Fatalf
(
"Create failed: %v"
,
err
)
t
.
Fatalf
(
"Create failed: %v"
,
err
)
}
}
t
.
Log
(
"Removing"
)
err
=
os
.
Remove
(
filepath
.
Join
(
submnt
,
"hello.txt"
))
err
=
os
.
Remove
(
filepath
.
Join
(
submnt
,
"hello.txt"
))
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"Remove failed: %v"
,
err
)
t
.
Fatalf
(
"Remove failed: %v"
,
err
)
}
}
t
.
Log
(
"Removing"
)
_
,
err
=
f
.
Write
([]
byte
(
"bla"
))
_
,
err
=
f
.
Write
([]
byte
(
"bla"
))
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatalf
(
"Write failed: %v"
,
err
)
t
.
Fatalf
(
"Write failed: %v"
,
err
)
...
...
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