[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on mac
From: |
John Donoghue |
Subject: |
[Octave-bug-tracker] [bug #57087] [instrument-control] tests fail on macOS for tcp/udp read/write |
Date: |
Wed, 23 Oct 2019 14:18:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763 |
Follow-up Comment #3, bug #57087 (project octave):
A small test oct file taht maybe will tell something?
In linux i can compile it using mkoctfile selectest.cc
#include <iostream>
#include <string>
#include <unistd.h>
#include <errno.h>
#include <octave/oct.h>
DEFUN_DLD (selecttest, args, nargout,
"-*- texinfo -*-\n\
@deftypefn {Loadable Function} {} testselect (])\n \
Test function\n \
@end deftypefn")
{
struct timeval tv;
printf("starting\n");
printf("select 1 second in usecs ...\n");
tv.tv_sec = 0;
tv.tv_usec = 1000 * 1000;
if (::select(0, NULL, NULL, NULL, &tv) < 0)
{
error("udp_read: Error while reading/select: %d - %s\n", errno,
strerror(errno));
}
else
printf("ok\n");
printf("select 1 second in secs ...\n");
FD_ZERO (&readfds);
tv.tv_sec = 1;
tv.tv_usec = 0;
if (::select(0, NULL, NULL, NULL, &tv) < 0)
{
error("udp_read: Error while reading/select: %d - %s\n", errno,
strerror(errno));
}
else
printf("ok\n");
return octave_value();
}
_______________________________________________________
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 <=
- [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, 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