diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-31 12:25:55 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-31 12:30:19 -0700 |
commit | 52dae3e9b26dd8b4c6ce7989505c41532c090051 (patch) | |
tree | 8190d1547283bfb0250981949055f4cbc6c61b54 /tests | |
parent | ef047e68ac7925b76c9bee7e83b43f2bc1f9fb77 (diff) |
- temp fix for test_enet
- added debugging info to websocket backend
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sockets/test_sockets_msg.h | 3 | ||||
-rw-r--r-- | tests/test_sockets.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/sockets/test_sockets_msg.h b/tests/sockets/test_sockets_msg.h index b60b056a..0e68803c 100644 --- a/tests/sockets/test_sockets_msg.h +++ b/tests/sockets/test_sockets_msg.h @@ -17,9 +17,10 @@ int do_msg_read(int sockfd, msg_t *msg, int offset, int length, struct sockaddr return res; } assert(res != 0); - msg->buffer = malloc(msg->length); printf("do_msg_read: allocating %d bytes for message\n", msg->length); + + msg->buffer = malloc(msg->length); } // read the actual message diff --git a/tests/test_sockets.py b/tests/test_sockets.py index d2bc46a2..c19b9d5d 100644 --- a/tests/test_sockets.py +++ b/tests/test_sockets.py @@ -297,7 +297,7 @@ class sockets(BrowserCore): pwd = os.getcwd() os.chdir(self.in_dir('enet')) Popen([PYTHON, path_from_root('emconfigure'), './configure']).communicate() - Popen([PYTHON, path_from_root('emmake'), 'make']).communicate() + Popen([PYTHON, path_from_root('emmake'), 'make', 'CFLAGS=-UHAS_GETHOSTBYADDR_R -UHAS_GETHOSTBYNAME_R']).communicate() enet = [self.in_dir('enet', '.libs', 'libenet.a'), '-I'+path_from_root('tests', 'enet', 'include')] os.chdir(pwd) |