Differences From Artifact [165fd0dcaf]:
- Executable file tests/OFIPXSocketTests.m — part of check-in [4a5822e7c0] at 2020-04-25 23:02:16 on branch trunk — Add OFIPXSocket (user: js, size: 1827) [annotate] [blame] [check-ins using]
To Artifact [bb7c59cc8b]:
- Executable file
tests/OFIPXSocketTests.m
— part of check-in
[1d6d86241a]
at
2020-04-26 09:13:21
on branch trunk
— Skip IPX tests when IPX is not configured
This is for when IPX is supported, but not configured, e.g. on Linux
kernels <= 4.17. (user: js, size: 2077) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
34 35 36 37 38 39 40 | TEST(@"+[socket]", (sock = [OFIPXSocket socket])) @try { TEST(@"-[bindToPort:packetType:]", R(address1 = [sock bindToPort: 0 packetType: 0])) } @catch (OFBindFailedException *e) { | | < | | > | | > > > > > > > > > > > | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | TEST(@"+[socket]", (sock = [OFIPXSocket socket])) @try { TEST(@"-[bindToPort:packetType:]", R(address1 = [sock bindToPort: 0 packetType: 0])) } @catch (OFBindFailedException *e) { switch (e.errNo) { case EAFNOSUPPORT: [self outputString: @"[OFIPXSocket] " @"-[bindToPort:packetType:]: " @"IPX unsupported, skipping tests\n" inColor: GREEN]; break; case EADDRNOTAVAIL: [self outputString: @"[OFIPXSocket] " @"-[bindToPort:packetType:]: " @"IPX not configured, skipping " @"tests\n" inColor: GREEN]; break; default: @throw e; } objc_autoreleasePoolPop(pool); return; } TEST(@"-[sendBuffer:length:receiver:]", R([sock sendBuffer: "Hello" |
︙ | ︙ |