169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
[[OFRunLoop mainRunLoop] runUntilDate:
[OFDate dateWithTimeIntervalSinceNow: 2]];
TEST(@"-[asyncAccept] & -[asyncConnectToNetwork:node:port:]",
delegate->_accepted && delegate->_connected)
} @catch (OFObserveKernelEventsFailedException *e) {
switch (e.errNo) {
case ENOTSOCK:
[OFStdOut setForegroundColor: [OFColor lime]];
[OFStdOut writeLine:
@"\r[OFSPXSocket] -[asyncAccept] & "
@"-[asyncConnectToNetwork:node:port:]: select() "
@"not supported for SPX, skipping test"];
|
>
>
>
>
>
>
>
|
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
[[OFRunLoop mainRunLoop] runUntilDate:
[OFDate dateWithTimeIntervalSinceNow: 2]];
TEST(@"-[asyncAccept] & -[asyncConnectToNetwork:node:port:]",
delegate->_accepted && delegate->_connected)
} @catch (OFObserveKernelEventsFailedException *e) {
/*
* Make sure it doesn't stay in the run loop and throws again
* next time we run the run loop.
*/
[sockClient cancelAsyncRequests];
[sockServer cancelAsyncRequests];
switch (e.errNo) {
case ENOTSOCK:
[OFStdOut setForegroundColor: [OFColor lime]];
[OFStdOut writeLine:
@"\r[OFSPXSocket] -[asyncAccept] & "
@"-[asyncConnectToNetwork:node:port:]: select() "
@"not supported for SPX, skipping test"];
|