Test case for 230.4Kbps support patches - uncovers errno propagation problem?
Wed Jan 22 07:36:00 GMT 2003
The attached program ratchets through the bitrates defined in termios.h and
tests a given (as first argument) serial port. This test will indicate if
tcsetattr() returns an error when invalid bitrates are attempted on a given
serial port (along with perror() to print the error-message associated w/
In the event that an invalid bitrate is attempted on a port, two events
should occur. 1) tcsetattr() should return -1, and 2) errno should be set
to EINVAL. Event #1 seems to work fine w/ my latest patch, but event #2 is
failing because errno is always set to 0. Unless I'm doing something wrong,
it appears that errno isn't being propagated back up from the call to
tcsetattr() ... can someone else take a peek at this? Thanks,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Cygwin-patches