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
ae4d11c5
Commit
ae4d11c5
authored
Sep 03, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a disabled test for failing behavior.
parent
22055c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+19
-3
No files found.
unionfs/unionfs_test.go
View file @
ae4d11c5
...
...
@@ -879,7 +879,7 @@ func TestDeletedGetAttr(t *testing.T) {
func
TestDoubleOpen
(
t
*
testing
.
T
)
{
wd
,
clean
:=
setupUfs
(
t
)
defer
clean
()
err
:=
ioutil
.
WriteFile
(
wd
+
"/ro/file"
,
[]
byte
(
"blabla"
),
0644
)
err
:=
ioutil
.
WriteFile
(
wd
+
"/ro/file"
,
[]
byte
(
"blabla
bla
"
),
0644
)
CheckSuccess
(
err
)
roFile
,
err
:=
os
.
Open
(
wd
+
"/mount/file"
)
...
...
@@ -895,6 +895,22 @@ func TestDoubleOpen(t *testing.T) {
t
.
Errorf
(
"After r/w truncation, r/o file should be empty too:"
,
output
)
}
// There are still failure cases here: writes to the r/w will
// not be read back by the ro/o files.
disabled
:=
true
if
!
disabled
{
want
:=
"hello"
_
,
err
=
rwFile
.
Write
([]
byte
(
want
))
CheckSuccess
(
err
)
b
:=
make
([]
byte
,
100
)
roFile
.
Seek
(
0
,
0
)
n
,
err
:=
roFile
.
Read
(
b
)
CheckSuccess
(
err
)
b
=
b
[
:
n
]
if
string
(
b
)
!=
"hello"
{
t
.
Errorf
(
"r/w and r/o file are not synchronized: got %q want %q"
,
string
(
b
),
want
)
}
}
}
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