ASPLes / nopoll

OpenSource WebSocket toolkit
http://www.aspl.es/nopoll
GNU Lesser General Public License v2.1
126 stars 73 forks source link

Test failures on FreeBSD 11 #51

Open DanielO opened 6 years ago

DanielO commented 6 years ago

Hi, I built this on a vanilla amd64 FreeBSD 11 system with no issues but the tests fail, ie

[vm11 6:28] ~/nopoll/test >./nopoll-regression-client
** NoPoll: Websocket toolkit (regression test).
** Copyright (C) 2015 Advanced Software Production Line, S.L.
**
** NoPoll regression tests: version=0.4.6.b400
**
** To gather information about time performance you can use:
**
**     >> time ./nopoll-regression-client [--debug,--show-critical-only]
**
** To gather information about memory consumed (and leaks) use:
**
**     >> libtool --mode=execute valgrind --leak-check=yes --error-limit=no ./nopoll-regression-client
**
**
** Report bugs to:
**
**     <nopoll@lists.aspl.es> noPoll mailing list
**
**     <info@aspl.es> ASPL's contact
**
INFO: install default threading functions to check noPoll locking code..
INFO: starting tests with pid: 8548
Test 01-strings: Library strings support [   OK   ]
Test 01-base64: Library base64 support [   OK   ]
Test-01 masking: using masking value 1408992891
Test 01 masking: found mask in the buffer 1408992891 == 1408992891
Test 01-masking: Library websocket content masking support [   OK   ]
Test 01: reference counting for the connection: 2
Test 01: Simple connect and disconnect [   OK   ]
Test 02: sending basic content..
Test 02: Simple request/reply [   OK   ]
Test 02a: connecting IPv6 (::1:2234)..
Test 02a: sending basic content..
Test 02a: Simple request/reply (IPv6) [   OK   ]
Test 02-b: creating connection localhost:1234 (errno=0)
Test 02-b: waiting until connection is ok (errno=57)
Test 02-b: sending content..
Test 02-b: received reply and echo matches..
Test 02-b: connection ready, sending PING frame (errno=0)..
Test 02-b: sending content..
Test 02-b: received reply and echo matches..
Test 02b: test sending ping [   OK   ]
Test 03: sending basic content..
Test 03: now reading reply..
Test 03: test streaming api [   OK   ]
Test 04: running test with chunk_size=1024
Test 04: creating connection to download file..
Test 04: sending get-file..
Test 04: stat file (nopoll-regression-client.c = 105815 bytes)
Test 04: checking content download (chunk_size=1024)...
Test 04: about to run diff nopoll-regression-client.c tmp > /dev/null
Test 04: test streaming api (II) [   OK   ]
Test 04: running test with chunk_size=512
Test 04: creating connection to download file..
Test 04: sending get-file..
Test 04: stat file (nopoll-regression-client.c = 105815 bytes)
Test 04: checking content download (chunk_size=512)...
Test 04: about to run diff nopoll-regression-client.c tmp > /dev/null
Test 04-a: test streaming api (III) [   OK   ]
Test 04: running test with chunk_size=137
Test 04: creating connection to download file..
Test 04: sending get-file..
Test 04: stat file (nopoll-regression-client.c = 105815 bytes)
Test 04: checking content download (chunk_size=137)...
Test 04: about to run diff nopoll-regression-client.c tmp > /dev/null
ERROR: failed to download file from server, content differs. Check: diff nopoll-regression-client.c tmp
Test 04-b: test streaming api (IV) [ FAILED ]

and..

[vm11 6:27] ~/nopoll/test >./nopoll-regression-listener
INFO: install default threading functions to check noPoll locking code..
noPoll listener started at: 0.0.0.0:1234 (refs: 2)..
noPoll listener started at (IPv6): ::1:2234 (refs: 2)..
Test: starting listener with TLS (TLSv1) at :1235
Test: starting listener with TLS IPv6 (TLSv1) at :2235
Test: starting listener with TLS (SSLv23) at :1236 (all methods)
Test: starting listener with TLS (SSLv3) at :1237
Test: starting listener with TLS (TLSv1.1) at :1238
Test: starting listener with TLS (TLSv1.1) (IPv6) at :2238
Test: starting listener with TLS (TLSv1.2) at :1240
Requested protocol: (null)
Reg test: called connection close (TLS: 0)..
Requested protocol: (null)
Listener received (size: 14, ctx refs: 12): (first 14 bytes, fragment: 0) 'This is a test'
Sending reply... (same message size: 14)
Reg test: called connection close (TLS: 0)..
Requested protocol: (null)
Listener received (size: 14, ctx refs: 12): (first 14 bytes, fragment: 0) 'This is a test'
Sending reply... (same message size: 14)
Reg test: called connection close (TLS: 0)..
Requested protocol: (null)
Listener received (size: 14, ctx refs: 12): (first 14 bytes, fragment: 0) 'This is a test'
Sending reply... (same message size: 14)
Listener received (size: 14, ctx refs: 12): (first 14 bytes, fragment: 0) 'This is a test'
Sending reply... (same message size: 14)
Reg test: called connection close (TLS: 0)..
Requested protocol: (null)
Listener received (size: 14, ctx refs: 12): (first 14 bytes, fragment: 0) 'This is a test'
Sending reply... (same message size: 14)
Reg test: called connection close (TLS: 0)..
Requested protocol: (null)
Listener received (size: 8, ctx refs: 12): (first 8 bytes, fragment: 0) 'get-file'
LISTENER: file pointer (0x801845ca0, errno=0 : No error: 0)..
Reg test: called connection close (TLS: 0)..
Requested protocol: (null)
Listener received (size: 8, ctx refs: 12): (first 8 bytes, fragment: 0) 'get-file'
LISTENER: file pointer (0x801845ca0, errno=0 : No error: 0)..
Reg test: called connection close (TLS: 0)..
Requested protocol: (null)
Listener received (size: 8, ctx refs: 12): (first 8 bytes, fragment: 0) 'get-file'
LISTENER: file pointer (0x801845ca0, errno=0 : No error: 0)..
Reg test: called connection close (TLS: 0)..