Commit acff636a authored by Aaron Jacobs's avatar Aaron Jacobs

Removed an assertion that doesn't pass on OS X.

For whatever reason, the directory shows up with Nlink == 2 there.
parent b064d6b3
...@@ -22,7 +22,6 @@ import ( ...@@ -22,7 +22,6 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"path" "path"
"syscall"
"testing" "testing"
. "github.com/jacobsa/oglematchers" . "github.com/jacobsa/oglematchers"
...@@ -347,12 +346,9 @@ func (t *PosixTest) RmdirWhileOpenedForReading() { ...@@ -347,12 +346,9 @@ func (t *PosixTest) RmdirWhileOpenedForReading() {
err = os.MkdirAll(path.Join(t.dir, "dir/baz"), 0700) err = os.MkdirAll(path.Join(t.dir, "dir/baz"), 0700)
AssertEq(nil, err) AssertEq(nil, err)
// We should still be able to stat the open file handle. It should show up as // We should still be able to stat the open file handle.
// unlinked.
fi, err := f.Stat() fi, err := f.Stat()
ExpectEq("dir", fi.Name()) 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 // 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 // new directory. It should either succeed with an empty result or should
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment