##// END OF EJS Templates
tests/hghave: test that a fifo actually can be created on the filesystem...
Mads Kiilerich -
r16969:6d167310 default
parent child Browse files
Show More
@@ -100,7 +100,15 b' def has_inotify():'
100 return False
100 return False
101
101
102 def has_fifo():
102 def has_fifo():
103 return getattr(os, "mkfifo", None) is not None
103 if getattr(os, "mkfifo", None) is None:
104 return False
105 name = tempfile.mktemp(dir='.', prefix=tempprefix)
106 try:
107 os.mkfifo(name)
108 os.unlink(name)
109 return True
110 except OSError:
111 return False
104
112
105 def has_cacheable_fs():
113 def has_cacheable_fs():
106 from mercurial import util
114 from mercurial import util
General Comments 0
You need to be logged in to leave comments. Login now