Are you trying to run this all in one process with purely event-driven I/O to communicate between the test driver and the FSM? If so, your problem seems to be that testSequence expects the FSM to have changed state after feeding it input but without having actually run the main event loop to allow the FSM to process its pending input.
Another possibility is that a FIFO has a read end and a write end, and I am unsure if the same file descriptor can be used for both. Are you opening the named pipes twice, once for read and once for write?
In reply to Re: testing of named pipes
by jcb
in thread testing of named pipes
by lalu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |