On 19/10/2026 06:37, Collin Funk wrote:
It would be good to add a test for this, but it seems a bit tricky to
see if a baud rate of UINT_MAX is supported without using 'stty'
itself, since a buggy version would mistakenly say it is unsupported.

Perhaps a Perl or Python script will do? I'll check tomorrow, unless
anyone has better ideas. Also, this patch requires the one I sent
previously. I probably should have sent them together. Oops.
Both look good to me thanks.

Testing is tricky.
Perhaps add SPEED_T_MAX to getlimits and
if $SPEED_T_MAX-1 is supported assume $SPEED_T_MAX is?
But that's an assumption.

I'm inclined to think this edge case is not worth testing.

cheers,
Padraig

Reply via email to