aboutsummaryrefslogtreecommitdiff
path: root/tests/test_sockets.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-18 11:38:08 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-18 11:38:08 -0800
commit163c038142e55ed04b223ec7990c16e57496a6dd (patch)
treecbfc4cda614dfca56d8b7fe88171c0e01c559ae4 /tests/test_sockets.py
parent5eedf4938f3f30c735858c30194d702cd252e37d (diff)
parent5e49fbbfdcca308b7f9d747fc66d3c92c03ac241 (diff)
Merge pull request #1832 from fadams/fix-accept-with-addr
fix a bug in the accept call in library.js whereby if accept was called ...
Diffstat (limited to 'tests/test_sockets.py')
-rw-r--r--tests/test_sockets.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_sockets.py b/tests/test_sockets.py
index e1caa150..1229aa70 100644
--- a/tests/test_sockets.py
+++ b/tests/test_sockets.py
@@ -235,7 +235,9 @@ class sockets(BrowserCore):
harnesses = [
(WebsockifyServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include], 49160), 0),
(CompiledServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include, '-DTEST_DGRAM=0'], 49161), 0),
- (CompiledServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include, '-DTEST_DGRAM=1'], 49162), 1)
+ (CompiledServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include, '-DTEST_DGRAM=1'], 49162), 1),
+ # The following forces non-NULL addr and addlen parameters for the accept call
+ (CompiledServerHarness(os.path.join('sockets', 'test_sockets_echo_server.c'), [sockets_include, '-DTEST_DGRAM=0', '-DTEST_ACCEPT_ADDR=1'], 49163), 0)
]
for harness, datagram in harnesses: