aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
AgeCommit message (Collapse)Author
2019-07-22[esock|test] Split the acceptconn test case into twoMicael Karlberg
The socket acceptconn test case has been split into two, one for UDP and one for TCP. OTP-15904
2019-07-22Merge branch 'maint'Rickard Green
* maint: Fix etp-ets-tables Fix node refc test for free processes hanging around Enhanced node refc bookkeeping Fix node container refc tests of ETS Fix node refc test of external data Node container refc test for persistent terms Include persistent term storage in node/dist refc check Fix node refc test for system message queue
2019-07-22Merge branch 'rickard/node-refc-tests-22' into maintRickard Green
* rickard/node-refc-tests-22: Fix etp-ets-tables Fix node refc test for free processes hanging around Enhanced node refc bookkeeping Fix node container refc tests of ETS Fix node refc test of external data Node container refc test for persistent terms Include persistent term storage in node/dist refc check Fix node refc test for system message queue
2019-07-22Fix node refc test for free processes hanging aroundRickard Green
2019-07-22Enhanced node refc bookkeepingRickard Green
2019-07-22Fix node container refc tests of ETSRickard Green
2019-07-22Fix node refc test of external dataRickard Green
2019-07-22Merge branch 'rickard/node-refc-tests-21' into rickard/node-refc-tests-22Rickard Green
* rickard/node-refc-tests-21: Node container refc test for persistent terms Include persistent term storage in node/dist refc check Fix node refc test for system message queue
2019-07-22Node container refc test for persistent termsRickard Green
2019-07-22Include persistent term storage in node/dist refc checkRickard Green
2019-07-22Merge branch 'rickard/node-refc-tests-20' into rickard/node-refc-tests-21Rickard Green
* rickard/node-refc-tests-20: Fix node refc test for system message queue
2019-07-22Fix node refc test for system message queueRickard Green
2019-07-22Merge branch 'maint'Kjell Winblad
2019-07-18[esock|test] Add two placeholder test cases: error and lingerMicael Karlberg
Added two place holder test cases for the socket options error and linger. OTP-15904
2019-07-18[esock|test] Update the bindtodevice test caseMicael Karlberg
Handle the eperm error reason that can be returned when attempting to use 'bindtodevice'. OTP-15904
2019-07-18[esock] Fixed a copy-and-paste error for bindtodeviceMicael Karlberg
Fixed a copy-and-paste error for socket option bindtodevice. Incorrectly used SO_BROADCAST option instead. OTP-15904
2019-07-18[esock|test] Make the broadcast test case more forgivingMicael Karlberg
OTP-15904
2019-07-18[esock|test] Some platforms does not accept acceptconn for UDPMicael Karlberg
Some platforms (for example darwin and OpenBSD) does not accept this option for UDP. Will result in 'enoprotoopt'. So, skip that part of the test case (UDP) if this error occurs. OTP-15904
2019-07-18Fix io:columns() and io:rows() are not working from escripts bugKjell Winblad
The functions io:columns() and io:rows() only worked correctly inside interactive erlang shells before this fix. These functions returned {error,enotsup} before this fix even if stdout and stdin were connected to a terminal when they were invoked from an escript or a program started with e.g., `erl -noshell`. This commit fixes issue ERL-717.
2019-07-18Merge branch 'bmk/erts/esock/20190718/socket_option_keepalive/OTP-15904' ↵Micael Karlberg
into bmk/erts/esock/20190717/socket_options/OTP-15904
2019-07-18Merge branch 'bmk/erts/esock/20190718/socket_option_dontroute/OTP-15904' ↵Micael Karlberg
into bmk/erts/esock/20190717/socket_options/OTP-15904
2019-07-18[esock|test] Add test case for socket option 'keepalive'Micael Karlberg
OTP-15904
2019-07-18[esock|test] Add test case for socket option 'dontroute'Micael Karlberg
OTP-15905
2019-07-17[esock|test] Add test case for the domain socket optionMicael Karlberg
OTP-15904
2019-07-17[esock|test] Add an attempt to read out the new debug valueMicael Karlberg
After a successful set of debug, also attempt to read it back to check that it actually took. OTP-15904
2019-07-17[esock|test] Add test case for socket option 'debug'Micael Karlberg
The test case must either be run with a user that has CAP_NET_ADMIN capability or by root. Otherwise the test case will be skipped (eacces). OTP-15904
2019-07-17[esock|test] Fix broadcast test on FreeBSDMicael Karlberg
On FreeBSD (for instance) the address "broadcast" (limited broadcast address = INADDR_BROADCAST) is not available (=> eaddrnotavail), so that part of the test is skipped. OTP-15904
2019-07-17[esock] Handle wildcard address 'broadcast' when bindingMicael Karlberg
Its now possible to bind a socket to the (limited) broadcast address by specifying 'broadcast' as address: socket:bind(Socket, broadcast) This is *only* valid for family 'inet'. Add testing of sending (broadcasting) to both "limited" broadcast address and "subnet-directed" broadcast address. OTP-15904
2019-07-17[esock|test] Post rebase correctionsMicael Karlberg
OTP-15904
2019-07-17[esock] Add test case for socket option bindtodeviceMicael Karlberg
Add test case for the socket option bindtodevice. Also make correction in the nif code. Used the wrong option (broadcast). Also added more info to doc. Note sure if this test case actually works. Set and get "works", but the value returned by get is always "". So either we should extend the test to made sure the bind actually has the expected effect or... Something for a rainy day maybe... OTP-15904
2019-07-17[esock|test] Add placeholder test case for socket option acceptfilterMicael Karlberg
OTP-15904
2019-07-17[esock] Add test case for socket option acceptconnMicael Karlberg
Add test case for the socket option acceptconn. Also make minor correction (error when trying to set this option was incorrect). Doc was also incorrect (spelled wrong). OTP-15904
2019-07-17Merge branch 'maint'Micael Karlberg
2019-07-17Merge branch 'bmk/erts/esock/20190715/tests_tweaking' into maintMicael Karlberg
2019-07-16Merge branch 'maint'Micael Karlberg
2019-07-15[esock|test] Adjusted time trapsMicael Karlberg
2019-07-15[esock|test] Extend gcc and multicast checksMicael Karlberg
Extend the "checks" for faulty gcc (found another platform with the same problem (Old SLES 11). Also tweaked the multicast test a bit.
2019-07-12Merge branch 'john/erts/merge-fd-file-info/OTP-15956'John Högberg
* john/erts/merge-fd-file-info/OTP-15956: file: allow read_file_info on file descriptors
2019-07-12file: allow read_file_info on file descriptorsAndre Nathan
2019-07-11[esock|test] Update the esock-ttest tool to work with IPv6Micael Karlberg
Needed to do some tweaking to make the tool work with IPv6 sockets. Also found and corrected some unrelated bugs in the tool. OTP-15897
2019-07-10[esock|test] Add missing IPv6 conditionsMicael Karlberg
"Due to" cut-and-paste, a number of IPv6 test cases was missing the condition fun for validating IPv6 support (which caused a couple of IPv6 test cases to fail on platforms not supporting IPv6). OTP-15897
2019-07-10[esock|test] Make the ttest groups of test cases work with IPv6Micael Karlberg
OTP-15897
2019-07-09[esock|test] Add a bunch of api async IPv6 test casesMicael Karlberg
OTP-15897
2019-07-09[esock|test] IPv6 socket address includes optional fieldsMicael Karlberg
OTP-15897
2019-07-09[esock|test] IPv6 socket address includes optional fieldsMicael Karlberg
OTP-15897
2019-07-09Merge branch 'rickard/test-fixes-21' into maint-22Erlang/OTP
* rickard/test-fixes-21: Fix unstable test dump_SUITE:signal_abort Fix unstable node_container_SUITE:magic_ref test Fix unstable node_container_SUITE:node_controller_refc test Fix unstable tests process_SUITE:no_priority_inversion{,2}
2019-07-08[esock|test] Add async IPv6 test caseMicael Karlberg
OTP-15897
2019-07-08[esock|test] Add counters IPv6 test casesMicael Karlberg
OTP-15897
2019-07-08[esock] Make it it work for IPv6Micael Karlberg
The nif code expects the socket address to be "complete", that is all fields must exist. This was not the case for a couple of functions, sendto, sendmsg and connect. What was mssing was a call to 'ensure_sockaddr'. Test: 1) Add a condition function to test if IPv6 is available and works. 2) Needed to adjust a test case (actually a common function used in several test cases) since the socket address data type has two optional fields, which we do not initiate (when sending), but the nif-code does fill in. OTP-15897
2019-07-08Merge branch 'maint'Micael Karlberg