-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Describe the bug
Running the "network-api-test" on VxWorks fails with several issues. The fcntl F_GETFL/F_SETFL calls return errno EINVAL followed by other failures.
To Reproduce
Run the "network-api-test" program on MCP750 w/VxWorks 6.9. Various failures are reported. Eventually the test hangs because a timeout test is reached, but timeouts do not function correctly due to issues with the previous fcntl F_GETFL calls.
Expected behavior
Test should pass.
System observed on:
MCP750 w/VxWorks 6.9
Additional context
This is partly related to modifications in PR #910/issue #863 which was a product of the CFS-38 review. Previously it would not check the result of the fcntl calls so the "selectable" flag was always set. Now the result is checked and the "selectable" flag only gets set if the flags were set. So the fcntl was always failing on VxWorks but it was previously ignored. But even if the O_NONBLOCK flag doesn't get set, select() should still be usable. The flag is mainly set as a protection in case two tasks call a blocking API at the same time.
Reporter Info
Joseph Hickey, Vantage Systems, Inc. (on behalf of JSC team)