mountlib: ensure we don't open files with read and write intent

This commit is contained in:
Nick Craig-Wood
2017-11-20 12:46:21 +00:00
parent 8951875c21
commit d7908c06c9
3 changed files with 10 additions and 7 deletions
+1 -2
View File
@@ -3,7 +3,6 @@
package mounttest
import (
"os"
"syscall"
"testing"
@@ -14,7 +13,7 @@ import (
func TestWriteFileDoubleClose(t *testing.T) {
run.skipIfNoFUSE(t)
out, err := os.Create(run.path("testdoubleclose"))
out, err := osCreate(run.path("testdoubleclose"))
assert.NoError(t, err)
fd := out.Fd()