commit - 1d270e941a4df43bb433716d6ec1e8c20839c9ce
commit + a819f13429a798a22dd464ed80904ed4b2c6befb
blob - 11dbea2bba941114cc5586f3c36bf0d3eda0bab2
blob + 358858390d94dd9aadfa4702ada5b813ad201860
--- tests/test_unreliablefs.py
+++ tests/test_unreliablefs.py
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())
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
return ret;
}
- ret = creat(path, mode);
+ ret = open(path, fi->flags, mode);
if (ret == -1) {
return -errno;
}