From bf0b7738945a4c8931819735fdfb3a18f11f90fa Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 6 Mar 2015 06:10:43 +1100 Subject: [PATCH] Added a test name. --- samples/memfs/inode.go | 7 ------- samples/memfs/memfs_test.go | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/samples/memfs/inode.go b/samples/memfs/inode.go index e906545..58cbbdc 100644 --- a/samples/memfs/inode.go +++ b/samples/memfs/inode.go @@ -27,10 +27,6 @@ import ( ) // Common attributes for files and directories. -// -// TODO(jacobsa): Add tests for interacting with a file/directory after it has -// been unlinked, including creating a new file. Make sure we don't screw up -// and reuse an inode ID while it is still in use. type inode struct { ///////////////////////// // Dependencies @@ -74,9 +70,6 @@ type inode struct { // might be calling readdir in a loop while concurrently modifying the // directory. Unused entries can, however, be reused. // - // TODO(jacobsa): Add good tests exercising concurrent modifications while - // doing readdir, seekdir, etc. calls. - // // INVARIANT: If dir is false, this is nil. // INVARIANT: For each i, entries[i].Offset == i+1 // INVARIANT: Contains no duplicate names in used entries. diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index 9c3d5ba..204f096 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -977,3 +977,7 @@ func (t *MemFSTest) Chtimes() { AssertEq(nil, err) ExpectEq(0, fi.ModTime().Sub(expectedMtime)) } + +func (t *MemFSTest) ReadDirWhileModifying() { + AssertTrue(false, "TODO") +}