Overview
Comment: | OFIPXSocketTests: Skip if we have no address |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c4b713609197bd16237d36afc35f5107 |
User & Date: | js on 2023-06-20 20:30:23 |
Other Links: | manifest | tags |
Context
2023-07-15
| ||
14:26 | runtime: Fix a comment check-in: 1106d5ad1d user: js tags: trunk | |
2023-06-20
| ||
20:30 | OFIPXSocketTests: Skip if we have no address check-in: c4b7136091 user: js tags: trunk | |
18:35 | Only set AUTO{CONF,MAKE}_VERSION on OpenBSD check-in: 9de73dcb86 user: js tags: trunk | |
Changes
Modified tests/OFIPXSocketTests.m from [03874c9250] to [9fd6f1a7eb].
︙ | |||
27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | + | const unsigned char zeroNode[IPX_NODE_LEN] = { 0 }; void *pool = objc_autoreleasePoolPush(); OFIPXSocket *sock; OFSocketAddress address1, address2; OFDictionary *networkInterfaces; char buffer[5]; unsigned char node1[IPX_NODE_LEN], node2[IPX_NODE_LEN]; unsigned char node[IPX_NODE_LEN]; TEST(@"+[socket]", (sock = [OFIPXSocket socket])) @try { TEST(@"-[bindToNetwork:node:port:packetType:]", R(address1 = [sock bindToNetwork: 0 node: zeroNode |
︙ | |||
69 70 71 72 73 74 75 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | - + + + + + + + + + + + | */ networkInterfaces = [OFSystemInfo networkInterfaces]; for (OFString *name in networkInterfaces) { OFNetworkInterface interface = [networkInterfaces objectForKey: name]; OFData *addresses = [interface objectForKey: OFNetworkInterfaceIPXAddresses]; |
︙ |