35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
TEST(@"-[bindToPort:packetType:]",
R(address1 = [sock bindToPort: 0 packetType: 0]))
} @catch (OFBindFailedException *e) {
switch (e.errNo) {
case EAFNOSUPPORT:
[of_stdout setForegroundColor: [OFColor lime]];
[of_stdout writeLine:
@"[OFIPXSocket] -[bindToPort:packetType:]: "
@"IPX unsupported, skipping tests"];
break;
case EADDRNOTAVAIL:
[of_stdout setForegroundColor: [OFColor lime]];
[of_stdout writeLine:
@"[OFIPXSocket] -[bindToPort:packetType:]: "
@"IPX not configured, skipping tests"];
break;
default:
@throw e;
}
objc_autoreleasePoolPop(pool);
|
|
|
|
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
TEST(@"-[bindToPort:packetType:]",
R(address1 = [sock bindToPort: 0 packetType: 0]))
} @catch (OFBindFailedException *e) {
switch (e.errNo) {
case EAFNOSUPPORT:
[of_stdout setForegroundColor: [OFColor lime]];
[of_stdout writeLine:
@"\r[OFIPXSocket] -[bindToPort:packetType:]: "
@"IPX unsupported, skipping tests"];
break;
case EADDRNOTAVAIL:
[of_stdout setForegroundColor: [OFColor lime]];
[of_stdout writeLine:
@"\r[OFIPXSocket] -[bindToPort:packetType:]: "
@"IPX not configured, skipping tests"];
break;
default:
@throw e;
}
objc_autoreleasePoolPop(pool);
|