From 7066fecc45fce312188890bb17877f9ba841e617 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 23 Mar 2015 16:12:02 +1100 Subject: [PATCH] Began on helper. --- samples/flushfs/flush_fs_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/samples/flushfs/flush_fs_test.go b/samples/flushfs/flush_fs_test.go index 6bcaedf..124f06f 100644 --- a/samples/flushfs/flush_fs_test.go +++ b/samples/flushfs/flush_fs_test.go @@ -24,6 +24,7 @@ import ( "syscall" "testing" + "github.com/jacobsa/bazilfuse" "github.com/jacobsa/fuse" "github.com/jacobsa/fuse/samples" "github.com/jacobsa/fuse/samples/flushfs" @@ -37,7 +38,7 @@ func TestFlushFS(t *testing.T) { RunTests(t) } // Boilerplate //////////////////////////////////////////////////////////////////////// -type FlushFSTest struct { +type flushFSTest struct { samples.SampleTest // File handles that are closed in TearDown if non-nil. @@ -55,9 +56,10 @@ type FlushFSTest struct { 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 // Set up a file system.