Skip to content
Snippets Groups Projects
Commit 6d167310 authored by kiilerix's avatar kiilerix
Browse files

tests/hghave: test that a fifo actually can be created on the filesystem

Some tests were failing on FAT filesystems.
parent 456f457e
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,15 @@
return False
def has_fifo():
return getattr(os, "mkfifo", None) is not None
if getattr(os, "mkfifo", None) is None:
return False
name = tempfile.mktemp(dir='.', prefix=tempprefix)
try:
os.mkfifo(name)
os.unlink(name)
return True
except OSError:
return False
def has_cacheable_fs():
from mercurial import util
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment