Began on helper.

geesefs-0-30-9
Aaron Jacobs 2015-03-23 16:12:02 +11:00
parent e997c8fc91
commit 7066fecc45
1 changed files with 6 additions and 4 deletions

View File

@ -24,6 +24,7 @@ import (
"syscall" "syscall"
"testing" "testing"
"github.com/jacobsa/bazilfuse"
"github.com/jacobsa/fuse" "github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/samples" "github.com/jacobsa/fuse/samples"
"github.com/jacobsa/fuse/samples/flushfs" "github.com/jacobsa/fuse/samples/flushfs"
@ -37,7 +38,7 @@ func TestFlushFS(t *testing.T) { RunTests(t) }
// Boilerplate // Boilerplate
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
type FlushFSTest struct { type flushFSTest struct {
samples.SampleTest samples.SampleTest
// File handles that are closed in TearDown if non-nil. // File handles that are closed in TearDown if non-nil.
@ -55,9 +56,10 @@ type FlushFSTest struct {
fsyncErr error fsyncErr error
} }
func init() { RegisterTestSuite(&FlushFSTest{}) } func (t *flushFSTest) setUp(
ti *TestInfo,
func (t *FlushFSTest) SetUp(ti *TestInfo) { flushErr bazilfuse.Errno,
fsyncErr bazilfuse.Errno) {
var err error var err error
// Set up a file system. // Set up a file system.