Commit Diff


commit - 1d270e941a4df43bb433716d6ec1e8c20839c9ce
commit + a819f13429a798a22dd464ed80904ed4b2c6befb
blob - 11dbea2bba941114cc5586f3c36bf0d3eda0bab2
blob + 358858390d94dd9aadfa4702ada5b813ad201860
--- tests/test_unreliablefs.py
+++ tests/test_unreliablefs.py
@@ -208,7 +208,6 @@ def test_seek(setup_unreliablefs):
     with open(fullname, 'rb') as fh:
         assert fh.read() == b'\0foocom\n'
 
-@pytest.mark.xfail(reason="gh-40")
 def test_open_unlink(setup_unreliablefs):
     mnt_dir, src_dir = setup_unreliablefs
     name = pjoin(mnt_dir, name_generator())
@@ -310,7 +309,6 @@ def test_truncate_path(setup_unreliablefs):
 
     os.unlink(filename)
 
-@pytest.mark.xfail(reason="gh-38")
 def test_truncate_fd(setup_unreliablefs):
     mnt_dir, src_dir = setup_unreliablefs
     assert len(TEST_DATA) > 1024
blob - 790671dc70ff0d53100a26e534e71a9f70c820ea
blob + 4b13abfd2b3b0e6df3ec480743993fbf4d0acd18
--- unreliablefs_ops.c
+++ unreliablefs_ops.c
@@ -554,7 +554,7 @@ int unreliable_create(const char *path, mode_t mode,
         return ret;
     }
 
-    ret = creat(path, mode);
+    ret = open(path, fi->flags, mode);
     if (ret == -1) {
         return -errno;
     }