diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-01 16:37:55 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-01 16:37:55 -0700 |
commit | 3928d903ae9a54bceb1b764af70d5d54c2974c7f (patch) | |
tree | 204c4a18c651517e01573f8c92e9886e2399c61a /tests/enet_client.c | |
parent | eb7e86da968c36230598cab6ae4131daa4c63627 (diff) |
enable working enet test
Diffstat (limited to 'tests/enet_client.c')
-rw-r--r-- | tests/enet_client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/enet_client.c b/tests/enet_client.c index 88bb38bb..78c8f314 100644 --- a/tests/enet_client.c +++ b/tests/enet_client.c @@ -30,6 +30,10 @@ void main_loop() { event.packet -> data, event.peer -> data, event.channelID); + + int result = strcmp("packetfoo", event.packet->data); + REPORT_RESULT(); + /* Clean up the packet now that we're done using it. */ enet_packet_destroy (event.packet); break; @@ -96,7 +100,7 @@ int main (int argc, char ** argv) "console.log('added.');"); #endif - emscripten_set_main_loop(main_loop, 1, 1); + emscripten_set_main_loop(main_loop, 3, 1); return 1; } |