orthecreedence / cl-async

Asynchronous IO library for Common Lisp.
MIT License
275 stars 40 forks source link

PIPE-CONNECT-FAIL test fails #174

Open rtvd opened 4 years ago

rtvd commented 4 years ago
 Failure Details:
 --------------------------------
 PIPE-CONNECT-FAIL [Make sure a pipe connection fails]: 
      Unexpected Error: #<CL-ASYNC:STREAMISH-ERROR {1003DCDC13}>
#<STREAMISH-ERROR #<PIPE {1003DCD573}>: -2: ENOENT {1003DCDC13}>..
rtvd commented 4 years ago

I do not see how the pipe code is supposed to work.

It appears to be using named pipes but if it does, where does it call mkfifo?

You can see this example in C.

Plisp commented 4 years ago

This library wraps libuv, which is a wrapper over OS-specific i/o interfaces. What OS are you running?

rtvd commented 4 years ago

Linux

rtvd commented 4 years ago

Unfortunately there is little documentation on which conditions can/should be raised. I have raised a ticket for that - #175.

The root cause appears to be that functions from cl-libuv are called but their return values are not checked. I could have added the checks but it is not clear to me which conditions are supposed to be raised in cl-async. Also, I do not see any documentation on the return values reported by libuv.

rtvd commented 4 years ago

Ah... I've found libuv's list of errors.