aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py4
-rw-r--r--tests/websockets.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 776ebcb2..806f3839 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -8447,7 +8447,7 @@ elif 'browser' in str(sys.argv):
''')
self.btest('pre_run_deps.cpp', expected='10', args=['--pre-js', 'pre.js'])
- def zzztest_websockets(self):
+ def test_websockets(self):
try:
def server_func():
os.system('while true; do (/bin/echo -en "te\x01\xff\x79st\x02" ; sleep 1000) | nc -vvvl 127.0.0.1 8990; done;') # sleep to work around websockify issue 63
@@ -8463,7 +8463,7 @@ elif 'browser' in str(sys.argv):
websockify.start()
print '[Websockify on process %d]' % websockify.pid
- self.btest('websockets.c', expected='fleefl')
+ self.btest('websockets.c', expected='571')
finally:
try:
diff --git a/tests/websockets.c b/tests/websockets.c
index 5988b633..c74b145d 100644
--- a/tests/websockets.c
+++ b/tests/websockets.c
@@ -60,6 +60,8 @@ void iter(void *arg) {
done = 1;
+ printf("sum: %d\n", sum);
+
#if EMSCRIPTEN
int result = sum;
REPORT_RESULT();