Commit b836442d authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Use ioutil.WriteFile() in loopback_test.

parent ab994efc
...@@ -108,11 +108,8 @@ func (me *testCase) removeMountFile() { ...@@ -108,11 +108,8 @@ func (me *testCase) removeMountFile() {
} }
func (me *testCase) writeOrigFile() { func (me *testCase) writeOrigFile() {
f, err := os.OpenFile(me.origFile, os.O_WRONLY|os.O_CREATE, 0700) err = ioutil.WriteFile(me.origFile, []byte(contents), 0700)
CheckSuccess(err) CheckSuccess(err)
_, err = f.Write([]byte(contents))
CheckSuccess(err)
f.Close()
} }
//////////////// ////////////////
......
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