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
edd7a488
Commit
edd7a488
authored
Mar 24, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declared msync-related tests.
parent
a0324464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
samples/flushfs/flush_fs_test.go
samples/flushfs/flush_fs_test.go
+13
-2
No files found.
samples/flushfs/flush_fs_test.go
View file @
edd7a488
...
...
@@ -173,6 +173,9 @@ func dup2(oldfd int, newfd int) (err error) {
return
}
// Call msync(2) on a slice previously returned by mmap(2).
func
msync
(
p
[]
byte
)
(
err
error
)
////////////////////////////////////////////////////////////////////////
// No errors
////////////////////////////////////////////////////////////////////////
...
...
@@ -542,7 +545,7 @@ func (t *NoErrorsTest) Dup2() {
ExpectThat
(
t
.
getFsyncs
(),
ElementsAre
())
}
func
(
t
*
NoErrorsTest
)
Mmap_MunmapBeforeClose
()
{
func
(
t
*
NoErrorsTest
)
Mmap_
NoMsync_
MunmapBeforeClose
()
{
var
n
int
var
err
error
...
...
@@ -589,7 +592,7 @@ func (t *NoErrorsTest) Mmap_MunmapBeforeClose() {
}
}
func
(
t
*
NoErrorsTest
)
Mmap_CloseBeforeMunmap
()
{
func
(
t
*
NoErrorsTest
)
Mmap_
NoMsync_
CloseBeforeMunmap
()
{
var
n
int
var
err
error
...
...
@@ -630,6 +633,14 @@ func (t *NoErrorsTest) Mmap_CloseBeforeMunmap() {
ExpectThat
(
t
.
getFsyncs
(),
ElementsAre
())
}
func
(
t
*
NoErrorsTest
)
Mmap_WithMsync_MunmapBeforeClose
()
{
AssertTrue
(
false
,
"TODO"
)
}
func
(
t
*
NoErrorsTest
)
Mmap_WithMsync_CloseBeforeMunmap
()
{
AssertTrue
(
false
,
"TODO"
)
}
func
(
t
*
NoErrorsTest
)
Directory
()
{
var
err
error
...
...
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