Added a test name.

geesefs-0-30-9
Aaron Jacobs 2015-03-06 06:10:43 +11:00
parent 978c353cf7
commit bf0b773894
2 changed files with 4 additions and 7 deletions

View File

@ -27,10 +27,6 @@ import (
) )
// Common attributes for files and directories. // 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 { type inode struct {
///////////////////////// /////////////////////////
// Dependencies // Dependencies
@ -74,9 +70,6 @@ type inode struct {
// might be calling readdir in a loop while concurrently modifying the // might be calling readdir in a loop while concurrently modifying the
// directory. Unused entries can, however, be reused. // 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: If dir is false, this is nil.
// INVARIANT: For each i, entries[i].Offset == i+1 // INVARIANT: For each i, entries[i].Offset == i+1
// INVARIANT: Contains no duplicate names in used entries. // INVARIANT: Contains no duplicate names in used entries.

View File

@ -977,3 +977,7 @@ func (t *MemFSTest) Chtimes() {
AssertEq(nil, err) AssertEq(nil, err)
ExpectEq(0, fi.ModTime().Sub(expectedMtime)) ExpectEq(0, fi.ModTime().Sub(expectedMtime))
} }
func (t *MemFSTest) ReadDirWhileModifying() {
AssertTrue(false, "TODO")
}