Fixed more build errors.
parent
e7dc200b88
commit
cab543fa8c
|
@ -25,7 +25,6 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jacobsa/bazilfuse"
|
"github.com/jacobsa/bazilfuse"
|
||||||
"github.com/jacobsa/fuse"
|
|
||||||
"github.com/jacobsa/fuse/samples"
|
"github.com/jacobsa/fuse/samples"
|
||||||
. "github.com/jacobsa/oglematchers"
|
. "github.com/jacobsa/oglematchers"
|
||||||
. "github.com/jacobsa/ogletest"
|
. "github.com/jacobsa/ogletest"
|
||||||
|
@ -597,9 +596,6 @@ func (t *FlushErrorTest) Close() {
|
||||||
t.f1, err = os.OpenFile(path.Join(t.Dir, "foo"), os.O_RDWR, 0)
|
t.f1, err = os.OpenFile(path.Join(t.Dir, "foo"), os.O_RDWR, 0)
|
||||||
AssertEq(nil, err)
|
AssertEq(nil, err)
|
||||||
|
|
||||||
// Configure a flush error.
|
|
||||||
t.setFlushError(fuse.ENOENT)
|
|
||||||
|
|
||||||
// Close the file.
|
// Close the file.
|
||||||
err = t.f1.Close()
|
err = t.f1.Close()
|
||||||
t.f1 = nil
|
t.f1 = nil
|
||||||
|
@ -623,9 +619,6 @@ func (t *FlushErrorTest) Dup() {
|
||||||
|
|
||||||
t.f2 = os.NewFile(uintptr(fd2), t.f1.Name())
|
t.f2 = os.NewFile(uintptr(fd2), t.f1.Name())
|
||||||
|
|
||||||
// Configure a flush error.
|
|
||||||
t.setFlushError(fuse.ENOENT)
|
|
||||||
|
|
||||||
// Close by the first handle. On OS X, where the semantics of file handles
|
// Close by the first handle. On OS X, where the semantics of file handles
|
||||||
// are different (cf. https://github.com/osxfuse/osxfuse/issues/199), this
|
// are different (cf. https://github.com/osxfuse/osxfuse/issues/199), this
|
||||||
// does not result in an error.
|
// does not result in an error.
|
||||||
|
@ -661,9 +654,6 @@ func (t *FlushErrorTest) Dup2() {
|
||||||
err = os.Remove(t.f2.Name())
|
err = os.Remove(t.f2.Name())
|
||||||
AssertEq(nil, err)
|
AssertEq(nil, err)
|
||||||
|
|
||||||
// Configure a flush error.
|
|
||||||
t.setFlushError(fuse.ENOENT)
|
|
||||||
|
|
||||||
// Duplicate the temporary file descriptor on top of the file from our file
|
// Duplicate the temporary file descriptor on top of the file from our file
|
||||||
// system. We shouldn't see the flush error.
|
// system. We shouldn't see the flush error.
|
||||||
err = dup2(int(t.f2.Fd()), int(t.f1.Fd()))
|
err = dup2(int(t.f2.Fd()), int(t.f1.Fd()))
|
||||||
|
@ -689,9 +679,6 @@ func (t *FsyncErrorTest) Fsync() {
|
||||||
t.f1, err = os.OpenFile(path.Join(t.Dir, "foo"), os.O_RDWR, 0)
|
t.f1, err = os.OpenFile(path.Join(t.Dir, "foo"), os.O_RDWR, 0)
|
||||||
AssertEq(nil, err)
|
AssertEq(nil, err)
|
||||||
|
|
||||||
// Configure an fsync error.
|
|
||||||
t.setFsyncError(fuse.ENOENT)
|
|
||||||
|
|
||||||
// Fsync.
|
// Fsync.
|
||||||
err = t.f1.Sync()
|
err = t.f1.Sync()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue