Commit c0d3a195 authored by Aaron Jacobs's avatar Aaron Jacobs

ForgetFSTest.CreateFile

parent ce13e404
...@@ -137,7 +137,19 @@ func (t *ForgetFSTest) Stat_ManyTimes() { ...@@ -137,7 +137,19 @@ func (t *ForgetFSTest) Stat_ManyTimes() {
} }
func (t *ForgetFSTest) CreateFile() { 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() { func (t *ForgetFSTest) MkDir() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment