simplifying unit test

This commit is contained in:
Alex Yatskov 2012-04-23 05:24:20 -07:00
parent 9f4c4dcf7f
commit 49f82eaf47

View File

@ -213,15 +213,6 @@ static void testMap(Binding* binding, Protocol* protocol) {
#endif
//
// Control
//
void testComplete(bool* complete) {
*complete = true;
}
//
// Program entry
//
@ -243,7 +234,6 @@ int main(int, char *[]) {
Binding& binding = server.binding();
Protocol& protocol = client.protocol();
bool complete = false;
#ifdef TEST_C_STRING
testCString(&binding, &protocol);
@ -269,10 +259,7 @@ int main(int, char *[]) {
testMap(&binding, &protocol);
#endif
binding.bind(FPARAM(testComplete));
protocol.invoke("testComplete", &complete);
while (!complete) {
while (protocol.pendingTasks()) {
server.advance();
client.advance();
}