Changeset eeeda4b in rtems-libbsd


Ignore:
Timestamp:
Nov 10, 2017, 10:17:13 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
c1e05b9ea378b2971e3d7704779112b4bc4296da, 4a77611a223ea883fb548679b516d326a020d447
Children:
23cd284
Parents:
057656b
Message:

tests/syscall01: Update error values

FreeBSD changed the error values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/syscalls01/test_main.c

    r057656b reeeda4b  
    7474
    7575static socket_test socket_tests[] = {
    76         { -1, SOCK_RAW, 0, EPROTONOSUPPORT },
    77         { PF_UNSPEC, SOCK_DGRAM, 0, EPROTONOSUPPORT },
     76        { -1, SOCK_RAW, 0, EAFNOSUPPORT },
     77        { PF_UNSPEC, SOCK_DGRAM, 0, EAFNOSUPPORT },
    7878        { PF_UNIX, SOCK_STREAM, 0, 0 },
    7979        { PF_UNIX, SOCK_DGRAM, 0, 0 },
    8080        { PF_UNIX, SOCK_SEQPACKET, 0, 0 },
    81         { PF_INET, -1, 0, EPROTONOSUPPORT },
     81        { PF_INET, -1, 0, EPROTOTYPE },
    8282        { PF_INET, SOCK_RAW, -1, EPROTONOSUPPORT },
    8383        { PF_INET, SOCK_STREAM, 0, 0 },
    8484        { PF_INET, SOCK_DGRAM, 0, 0 },
    85         { PF_INET, SOCK_SEQPACKET, 0, EPROTONOSUPPORT },
     85        { PF_INET, SOCK_SEQPACKET, 0, EPROTOTYPE },
    8686        { PF_INET, SOCK_RAW, IPPROTO_3PC, 0 },
    8787        { PF_INET, SOCK_RAW, IPPROTO_ADFS, 0 },
     
    192192        { PF_INET, SOCK_RAW, IPPROTO_XNET, 0 },
    193193        { PF_INET, SOCK_RAW, IPPROTO_XTP, 0 },
    194         { PF_IMPLINK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    195         { PF_PUP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    196         { PF_CHAOS, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    197         { PF_NETBIOS, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    198         { PF_ISO, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    199         { PF_ECMA, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    200         { PF_DATAKIT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    201         { PF_CCITT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    202         { PF_SNA, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    203         { PF_DECnet, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    204         { PF_DLI, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    205         { PF_LAT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    206         { PF_HYLINK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    207         { PF_APPLETALK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    208         { PF_ROUTE, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    209         { PF_LINK, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    210         { PF_XTP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    211         { PF_COIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    212         { PF_CNT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    213         { PF_RTIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    214         { PF_IPX, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    215         { PF_SIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    216         { PF_PIP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    217         { PF_ISDN, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    218         { PF_KEY, SOCK_DGRAM, 0, EPROTONOSUPPORT },
     194        { PF_IMPLINK, SOCK_DGRAM, 0, EAFNOSUPPORT },
     195        { PF_PUP, SOCK_DGRAM, 0, EAFNOSUPPORT },
     196        { PF_CHAOS, SOCK_DGRAM, 0, EAFNOSUPPORT },
     197        { PF_NETBIOS, SOCK_DGRAM, 0, EAFNOSUPPORT },
     198        { PF_ISO, SOCK_DGRAM, 0, EAFNOSUPPORT },
     199        { PF_ECMA, SOCK_DGRAM, 0, EAFNOSUPPORT },
     200        { PF_DATAKIT, SOCK_DGRAM, 0, EAFNOSUPPORT },
     201        { PF_CCITT, SOCK_DGRAM, 0, EAFNOSUPPORT },
     202        { PF_SNA, SOCK_DGRAM, 0, EAFNOSUPPORT },
     203        { PF_DECnet, SOCK_DGRAM, 0, EAFNOSUPPORT },
     204        { PF_DLI, SOCK_DGRAM, 0, EAFNOSUPPORT },
     205        { PF_LAT, SOCK_DGRAM, 0, EAFNOSUPPORT },
     206        { PF_HYLINK, SOCK_DGRAM, 0, EAFNOSUPPORT },
     207        { PF_APPLETALK, SOCK_DGRAM, 0, EAFNOSUPPORT },
     208        { PF_ROUTE, SOCK_DGRAM, 0, EPROTOTYPE },
     209        { PF_LINK, SOCK_DGRAM, 0, EAFNOSUPPORT },
     210        { PF_XTP, SOCK_DGRAM, 0, EAFNOSUPPORT },
     211        { PF_COIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
     212        { PF_CNT, SOCK_DGRAM, 0, EAFNOSUPPORT },
     213        { PF_RTIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
     214        { PF_IPX, SOCK_DGRAM, 0, EAFNOSUPPORT },
     215        { PF_SIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
     216        { PF_PIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
     217        { PF_ISDN, SOCK_DGRAM, 0, EAFNOSUPPORT },
     218        { PF_KEY, SOCK_DGRAM, 0, EAFNOSUPPORT },
    219219        { PF_INET6, SOCK_DGRAM, 0, 0 },
    220         { PF_NATM, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    221         { PF_ATM, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    222         { pseudo_AF_HDRCMPLT, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    223         { PF_NETGRAPH, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    224         { PF_SLOW, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    225         { PF_SCLUSTER, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    226         { PF_ARP, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    227         { PF_BLUETOOTH, SOCK_DGRAM, 0, EPROTONOSUPPORT },
    228         { AF_IEEE80211, SOCK_DGRAM, 0, EPROTONOSUPPORT }
     220        { PF_NATM, SOCK_DGRAM, 0, EAFNOSUPPORT },
     221        { PF_ATM, SOCK_DGRAM, 0, EAFNOSUPPORT },
     222        { pseudo_AF_HDRCMPLT, SOCK_DGRAM, 0, EAFNOSUPPORT },
     223        { PF_NETGRAPH, SOCK_DGRAM, 0, EAFNOSUPPORT },
     224        { PF_SLOW, SOCK_DGRAM, 0, EAFNOSUPPORT },
     225        { PF_SCLUSTER, SOCK_DGRAM, 0, EAFNOSUPPORT },
     226        { PF_ARP, SOCK_DGRAM, 0, EAFNOSUPPORT },
     227        { PF_BLUETOOTH, SOCK_DGRAM, 0, EAFNOSUPPORT },
     228        { AF_IEEE80211, SOCK_DGRAM, 0, EAFNOSUPPORT }
    229229};
    230230
     
    515515        rv = ioctl(sd, 0xffffffff);
    516516        assert(rv == -1);
    517         assert(errno == EOPNOTSUPP);
     517        assert(errno == EADDRNOTAVAIL);
    518518
    519519        data = -1;
Note: See TracChangeset for help on using the changeset viewer.