mountlib: ensure we don't open files with read and write intent
This commit is contained in:
parent
8951875c21
commit
d7908c06c9
3 changed files with 10 additions and 7 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue