101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
server->port += 1024;
[server start];
url = [OFURL URLWithString:
[OFString stringWithFormat: @"http://127.0.0.1:%" @PRIu16 "/foo",
server->port]];
TEST(@"+[request]", (req = [OFHTTPRequest request]))
TEST(@"-[setURL:]", R([req setURL: url]))
[cond wait];
[cond unlock];
TEST(@"-[perform]", (res = [req perform]))
[server join];
[pool drain];
}
@end
|
|
<
|
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
server->port += 1024;
[server start];
url = [OFURL URLWithString:
[OFString stringWithFormat: @"http://127.0.0.1:%" @PRIu16 "/foo",
server->port]];
TEST(@"+[requestWithURL]", (req = [OFHTTPRequest requestWithURL: url]))
[cond wait];
[cond unlock];
TEST(@"-[perform]", (res = [req perform]))
[server join];
[pool drain];
}
@end
|