Differences From 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]
To Artifact [7578ebb381]:
- Executable file tests/OFIPXSocketTests.m — part of check-in [cdaa971823] at 2020-05-22 00:16:56 on branch trunk — tests: Use new terminal control methods (user: js, size: 2098) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
36 37 38 39 40 41 42 | @try { TEST(@"-[bindToPort:packetType:]", R(address1 = [sock bindToPort: 0 packetType: 0])) } @catch (OFBindFailedException *e) { switch (e.errNo) { case EAFNOSUPPORT: | > | | | < > | | | < < | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | @try { TEST(@"-[bindToPort:packetType:]", R(address1 = [sock bindToPort: 0 packetType: 0])) } @catch (OFBindFailedException *e) { switch (e.errNo) { case EAFNOSUPPORT: of_stdout.foregroundColor = [OFColor lime]; [of_stdout writeLine: @"[OFIPXSocket] -[bindToPort:packetType:]: " @"IPX unsupported, skipping tests"]; break; case EADDRNOTAVAIL: of_stdout.foregroundColor = [OFColor lime]; [of_stdout writeLine: @"[OFIPXSocket] -[bindToPort:packetType:]: " @"IPX not configured, skipping tests"]; break; default: @throw e; } objc_autoreleasePoolPop(pool); return; |
︙ | ︙ |