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
acff636a
Commit
acff636a
authored
Mar 16, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed an assertion that doesn't pass on OS X.
For whatever reason, the directory shows up with Nlink == 2 there.
parent
b064d6b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
samples/memfs/posix_test.go
samples/memfs/posix_test.go
+1
-5
No files found.
samples/memfs/posix_test.go
View file @
acff636a
...
...
@@ -22,7 +22,6 @@ import (
"io/ioutil"
"os"
"path"
"syscall"
"testing"
.
"github.com/jacobsa/oglematchers"
...
...
@@ -347,12 +346,9 @@ func (t *PosixTest) RmdirWhileOpenedForReading() {
err
=
os
.
MkdirAll
(
path
.
Join
(
t
.
dir
,
"dir/baz"
),
0700
)
AssertEq
(
nil
,
err
)
// We should still be able to stat the open file handle. It should show up as
// unlinked.
// We should still be able to stat the open file handle.
fi
,
err
:=
f
.
Stat
()
ExpectEq
(
"dir"
,
fi
.
Name
())
ExpectEq
(
0
,
fi
.
Sys
()
.
(
*
syscall
.
Stat_t
)
.
Nlink
)
// Attempt to read from the directory. This shouldn't see any junk from the
// new directory. It should either succeed with an empty result or should
...
...
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