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