38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
@try {
TEST(@"-[bindToHost:port:]",
(port = [server bindToHost: @"127.0.0.1"
port: 0]))
} @catch (OFBindFailedException *e) {
switch (e.errNo) {
case EPROTONOSUPPORT:
of_stdout.foregroundColor = [OFColor lime];
[of_stdout writeLine:
@"[OFSCTPSocket] -[bindToHost:port:]: "
@"SCTP unsupported, skipping tests"];
break;
default:
@throw e;
}
|
|
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
@try {
TEST(@"-[bindToHost:port:]",
(port = [server bindToHost: @"127.0.0.1"
port: 0]))
} @catch (OFBindFailedException *e) {
switch (e.errNo) {
case EPROTONOSUPPORT:
[of_stdout foregroundColor: [OFColor lime]];
[of_stdout writeLine:
@"[OFSCTPSocket] -[bindToHost:port:]: "
@"SCTP unsupported, skipping tests"];
break;
default:
@throw e;
}
|