88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
@try {
TEST(@"-[bindToPort:]",
R(address1 = [sockServer bindToPort: 0]))
} @catch (OFBindFailedException *e) {
switch (e.errNo) {
case EAFNOSUPPORT:
[self outputString: @"[OFSPXSocket] -[bindToPort:]: "
@"IPX unsupported, skipping tests\n"
inColor: GREEN];
break;
case ESOCKTNOSUPPORT:
[self outputString: @"[OFSPXSocket] -[bindToPort:]: "
@"SPX unsupported, skipping tests\n"
inColor: GREEN];
break;
case EADDRNOTAVAIL:
[self outputString: @"[OFSPXSocket] -[bindToPort:]: "
@"IPX not configured, skipping "
@"tests\n"
inColor: GREEN];
break;
default:
@throw e;
}
objc_autoreleasePoolPop(pool);
return;
|
>
>
|
|
<
>
>
|
|
<
>
>
|
|
<
<
|
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
@try {
TEST(@"-[bindToPort:]",
R(address1 = [sockServer bindToPort: 0]))
} @catch (OFBindFailedException *e) {
switch (e.errNo) {
case EAFNOSUPPORT:
of_stdout.foregroundColor = [OFColor lime];
[of_stdout writeLine:
@"[OFSPXSocket] -[bindToPort:]: "
@"IPX unsupported, skipping tests"];
break;
case ESOCKTNOSUPPORT:
of_stdout.foregroundColor = [OFColor lime];
[of_stdout writeLine:
@"[OFSPXSocket] -[bindToPort:]: "
@"SPX unsupported, skipping tests"];
break;
case EADDRNOTAVAIL:
of_stdout.foregroundColor = [OFColor lime];
[of_stdout writeLine:
@"[OFSPXSocket] -[bindToPort:]: "
@"IPX not configured, skipping tests"];
break;
default:
@throw e;
}
objc_autoreleasePoolPop(pool);
return;
|