ForgetFSTest.MkDir

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

View File

@ -153,5 +153,15 @@ func (t *ForgetFSTest) CreateFile() {
}
func (t *ForgetFSTest) MkDir() {
AssertTrue(false, "TODO")
// Create many directories within the root.
for i := 0; i < 100; i++ {
err := os.Mkdir(path.Join(t.Dir, "blah"), 0777)
AssertEq(nil, err)
}
// Create many directories within the sub-directory.
for i := 0; i < 100; i++ {
err := os.Mkdir(path.Join(t.Dir, "bar", "blah"), 0777)
AssertEq(nil, err)
}
}