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
|
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:
[self outputString: @"[OFSPXSocket] -[bindToPort:]: "
@"IPX unsupported, skipping tests\n"
@"[OFSPXSocket] -[bindToPort:]: "
@"IPX unsupported, skipping tests"];
inColor: GREEN];
break;
case ESOCKTNOSUPPORT:
of_stdout.foregroundColor = [OFColor lime];
[of_stdout writeLine:
[self outputString: @"[OFSPXSocket] -[bindToPort:]: "
@"SPX unsupported, skipping tests\n"
@"[OFSPXSocket] -[bindToPort:]: "
@"SPX unsupported, skipping tests"];
inColor: GREEN];
break;
case EADDRNOTAVAIL:
of_stdout.foregroundColor = [OFColor lime];
[of_stdout writeLine:
[self outputString: @"[OFSPXSocket] -[bindToPort:]: "
@"IPX not configured, skipping "
@"[OFSPXSocket] -[bindToPort:]: "
@"IPX not configured, skipping tests"];
@"tests\n"
inColor: GREEN];
break;
default:
@throw e;
}
objc_autoreleasePoolPop(pool);
return;
|