Overview
Comment: | Skip IPX tests when IPX is not configured
This is for when IPX is supported, but not configured, e.g. on Linux |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1d6d86241af7ce959b83f1edab27ce1c |
User & Date: | js on 2020-04-26 09:13:21 |
Other Links: | manifest | tags |
Context
2020-04-26
| ||
09:37 | .travis.yml: Configure IPX on precise to run tests check-in: fdef4054ff user: js tags: trunk | |
09:13 | Skip IPX tests when IPX is not configured check-in: 1d6d86241a user: js tags: trunk | |
2020-04-25
| ||
23:02 | Add OFIPXSocket check-in: 4a5822e7c0 user: js tags: trunk | |
Changes
Modified tests/OFIPXSocketTests.m from [165fd0dcaf] to [bb7c59cc8b].
︙ | ︙ | |||
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" |
︙ | ︙ |