ForgetFSTest.CreateFile

geesefs-0-30-9
Aaron Jacobs 2015-03-31 10:09:09 +11:00
parent ce13e404fd
commit c0d3a195c6
1 changed files with 13 additions and 1 deletions

View File

@ -137,7 +137,19 @@ func (t *ForgetFSTest) Stat_ManyTimes() {
}
func (t *ForgetFSTest) CreateFile() {
AssertTrue(false, "TODO")
// Create and close many files within the root.
for i := 0; i < 100; i++ {
f, err := os.Create(path.Join(t.Dir, "blah"))
AssertEq(nil, err)
AssertEq(nil, f.Close())
}
// Create and close many files within the sub-directory.
for i := 0; i < 100; i++ {
f, err := os.Create(path.Join(t.Dir, "bar", "blah"))
AssertEq(nil, err)
AssertEq(nil, f.Close())
}
}
func (t *ForgetFSTest) MkDir() {