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

Add disabled test case for eclipse file saving.

parent 350acb3a
...@@ -875,3 +875,18 @@ func TestDeletedGetAttr(t *testing.T) { ...@@ -875,3 +875,18 @@ func TestDeletedGetAttr(t *testing.T) {
t.Fatalf("stat returned error or non-file: %v %v", err, fi) t.Fatalf("stat returned error or non-file: %v %v", err, fi)
} }
} }
// Eclipse writes files in this manner:
func DisabledTestDoubleOpen(t *testing.T) {
wd, clean := setupUfs(t)
defer clean()
err := ioutil.WriteFile(wd+"/ro/file", []byte("blabla"), 0644)
CheckSuccess(err)
roFile, err := os.Open(wd + "/mount/file")
CheckSuccess(err)
defer roFile.Close()
rwFile, err := os.OpenFile(wd + "/mount/file", os.O_WRONLY | os.O_TRUNC, 0666)
CheckSuccess(err)
defer rwFile.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