Began on helper.
parent
e997c8fc91
commit
7066fecc45
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue