[rtems-libbsd commit] tests/syscall01: Update error values
Sebastian Huber
sebh at rtems.org
Fri Nov 10 12:00:20 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: eeeda4b1b8dc1bc7106a0c3722c551cb03b0518b
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=eeeda4b1b8dc1bc7106a0c3722c551cb03b0518b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 10 11:17:13 2017 +0100
tests/syscall01: Update error values
FreeBSD changed the error values.
---
testsuite/syscalls01/test_main.c | 78 ++++++++++++++++++++--------------------
1 file changed, 39 insertions(+), 39 deletions(-)
diff --git a/testsuite/syscalls01/test_main.c b/testsuite/syscalls01/test_main.c
index d61e3b8..397e058 100644
--- a/testsuite/syscalls01/test_main.c
+++ b/testsuite/syscalls01/test_main.c
@@ -73,16 +73,16 @@ typedef struct {
} socket_test;
static socket_test socket_tests[] = {
- { -1, SOCK_RAW, 0, EPROTONOSUPPORT },
- { PF_UNSPEC, SOCK_DGRAM, 0, EPROTONOSUPPORT },
+ { -1, SOCK_RAW, 0, EAFNOSUPPORT },
+ { PF_UNSPEC, SOCK_DGRAM, 0, EAFNOSUPPORT },
{ PF_UNIX, SOCK_STREAM, 0, 0 },
{ PF_UNIX, SOCK_DGRAM, 0, 0 },
{ PF_UNIX, SOCK_SEQPACKET, 0, 0 },
- { PF_INET, -1, 0, EPROTONOSUPPORT },
+ { PF_INET, -1, 0, EPROTOTYPE },
{ PF_INET, SOCK_RAW, -1, EPROTONOSUPPORT },
{ PF_INET, SOCK_STREAM, 0, 0 },
{ PF_INET, SOCK_DGRAM, 0, 0 },
- { PF_INET, SOCK_SEQPACKET, 0, EPROTONOSUPPORT },
+ { PF_INET, SOCK_SEQPACKET, 0, EPROTOTYPE },
{ PF_INET, SOCK_RAW, IPPROTO_3PC, 0 },
{ PF_INET, SOCK_RAW, IPPROTO_ADFS, 0 },
{ PF_INET, SOCK_RAW, IPPROTO_AH, 0 },
@@ -191,41 +191,41 @@ static socket_test socket_tests[] = {
{ PF_INET, SOCK_RAW, IPPROTO_WSN, 0 },
{ PF_INET, SOCK_RAW, IPPROTO_XNET, 0 },
{ PF_INET, SOCK_RAW, IPPROTO_XTP, 0 },
- { PF_IMPLINK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_PUP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_CHAOS, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_NETBIOS, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_ISO, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_ECMA, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_DATAKIT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_CCITT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_SNA, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_DECnet, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_DLI, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_LAT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_HYLINK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_APPLETALK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_ROUTE, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_LINK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_XTP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_COIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_CNT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_RTIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_IPX, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_SIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_PIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_ISDN, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_KEY, SOCK_DGRAM, 0, EPROTONOSUPPORT },
+ { PF_IMPLINK, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_PUP, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_CHAOS, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_NETBIOS, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_ISO, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_ECMA, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_DATAKIT, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_CCITT, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_SNA, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_DECnet, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_DLI, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_LAT, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_HYLINK, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_APPLETALK, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_ROUTE, SOCK_DGRAM, 0, EPROTOTYPE },
+ { PF_LINK, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_XTP, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_COIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_CNT, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_RTIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_IPX, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_SIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_PIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_ISDN, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_KEY, SOCK_DGRAM, 0, EAFNOSUPPORT },
{ PF_INET6, SOCK_DGRAM, 0, 0 },
- { PF_NATM, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_ATM, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { pseudo_AF_HDRCMPLT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_NETGRAPH, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_SLOW, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_SCLUSTER, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_ARP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { PF_BLUETOOTH, SOCK_DGRAM, 0, EPROTONOSUPPORT },
- { AF_IEEE80211, SOCK_DGRAM, 0, EPROTONOSUPPORT }
+ { PF_NATM, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_ATM, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { pseudo_AF_HDRCMPLT, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_NETGRAPH, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_SLOW, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_SCLUSTER, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_ARP, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { PF_BLUETOOTH, SOCK_DGRAM, 0, EAFNOSUPPORT },
+ { AF_IEEE80211, SOCK_DGRAM, 0, EAFNOSUPPORT }
};
static void
@@ -514,7 +514,7 @@ test_socket_ioctl(void)
errno = 0;
rv = ioctl(sd, 0xffffffff);
assert(rv == -1);
- assert(errno == EOPNOTSUPP);
+ assert(errno == EADDRNOTAVAIL);
data = -1;
rv = ioctl(sd, FIONREAD, &data);
More information about the vc
mailing list