diff options
-rw-r--r-- | tests/enet_client.c | 6 | ||||
-rw-r--r-- | tests/enet_server.c | 2 | ||||
-rwxr-xr-x | tests/runner.py | 4 |
3 files changed, 8 insertions, 4 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; } diff --git a/tests/enet_server.c b/tests/enet_server.c index 2f879f53..87c64038 100644 --- a/tests/enet_server.c +++ b/tests/enet_server.c @@ -96,7 +96,7 @@ int main (int argc, char ** argv) exit (EXIT_FAILURE); } - emscripten_set_main_loop(main_loop, 1, 1); + emscripten_set_main_loop(main_loop, 3, 1); return 1; } diff --git a/tests/runner.py b/tests/runner.py index abbaf427..5ed6b0b3 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -9347,7 +9347,7 @@ elif 'browser' in str(sys.argv): finally: self.clean_pids() - def zzztest_zz_enet(self): + def test_zz_enet(self): try_delete(self.in_dir('enet')) shutil.copytree(path_from_root('tests', 'enet'), self.in_dir('enet')) pwd = os.getcwd() @@ -9361,7 +9361,7 @@ elif 'browser' in str(sys.argv): try: with self.WebsockHarness(1234, self.make_relay_server(1234, 1236)): with self.WebsockHarness(1236, no_server=True): - self.btest('enet_client.c', expected='cheez', args=enet) + self.btest('enet_client.c', expected='0', args=enet) finally: self.clean_pids() |