Fixed more build errors.

geesefs-0-30-9
Aaron Jacobs 2015-03-24 08:43:24 +11:00
parent e7dc200b88
commit cab543fa8c
1 changed files with 0 additions and 13 deletions

View File

@ -25,7 +25,6 @@ import (
"testing"
"github.com/jacobsa/bazilfuse"
"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/samples"
. "github.com/jacobsa/oglematchers"
. "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)
AssertEq(nil, err)
// Configure a flush error.
t.setFlushError(fuse.ENOENT)
// Close the file.
err = t.f1.Close()
t.f1 = nil
@ -623,9 +619,6 @@ func (t *FlushErrorTest) Dup() {
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
// are different (cf. https://github.com/osxfuse/osxfuse/issues/199), this
// does not result in an error.
@ -661,9 +654,6 @@ func (t *FlushErrorTest) Dup2() {
err = os.Remove(t.f2.Name())
AssertEq(nil, err)
// Configure a flush error.
t.setFlushError(fuse.ENOENT)
// Duplicate the temporary file descriptor on top of the file from our file
// system. We shouldn't see the flush error.
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)
AssertEq(nil, err)
// Configure an fsync error.
t.setFsyncError(fuse.ENOENT)
// Fsync.
err = t.f1.Sync()