[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on mac
From: |
Andrew Janke |
Subject: |
[Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write |
Date: |
Wed, 23 Oct 2019 15:40:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0 |
Follow-up Comment #4, bug #57087 (project octave):
Good test. I tweaked it a bit and attached an update.
In a Homebrewed Octave 5.1.0 on macOS 10.14.6:
octave:1> testselect
starting
select for 999,999 usecs ...
ok
select 1 second in secs ...
ok
select for 1,000,000 usecs ...
error: udp_read: Error while reading/select: 22 - Invalid argument
octave:1>
That's exactly what I'd expect to see if the tv_usec value was constrained to
be less than 1,000,000 on this system.
I think what needs to happen for portability is that the instrument-control
tcp_read and udp_read functions need to add logic to "carry over" tv_usec
values > 999,999 into the whole-seconds tv_sec field.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57087>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, Andrew Janke, 2019/10/20
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, John Donoghue, 2019/10/20
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, Andrew Janke, 2019/10/20
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, John Donoghue, 2019/10/23
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write,
Andrew Janke <=
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, John Donoghue, 2019/10/23
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, Andrew Janke, 2019/10/23
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, Andrew Janke, 2019/10/23
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, Andrew Janke, 2019/10/23
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, John Donoghue, 2019/10/23
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, Andrew Janke, 2019/10/23
- [Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write, John Donoghue, 2019/10/28