Benjamin Sergeant
671c9f805f
use a regular mutex instead of a recursive one + stop properly
2019-05-15 19:26:02 -07:00
Benjamin Sergeant
ace7a7ccae
adding logging to IXWebSocketTestConnectionDisconnection makes it fails reliably
2019-05-15 19:26:02 -07:00
Benjamin Sergeant
f1272f059a
-j option actually work ...
2019-05-15 18:15:45 -07:00
Benjamin Sergeant
91595ff4c2
unittest / add options to set the number of jobs
2019-05-15 17:52:03 -07:00
Benjamin Sergeant
3755d29a45
enum class HttpErrorCode derives from int
2019-05-15 16:50:00 -07:00
Benjamin Sergeant
c2b75399ae
try to re-enable some tests
2019-05-15 16:28:29 -07:00
Benjamin Sergeant
a33ecd1338
recursive mutex + enable test that was breaking on Ubuntu Xenial + gcc + tsan
2019-05-15 16:01:05 -07:00
Benjamin Sergeant
a7e29a9f36
comment failing test
2019-05-15 15:44:14 -07:00
Benjamin Sergeant
02399dfa5c
comment failing test
2019-05-15 15:37:30 -07:00
Benjamin Sergeant
9315eb5289
more protection against socket when closing
2019-05-15 15:18:46 -07:00
Benjamin Sergeant
5b2b2ea7b0
fix compile errors with C++ enum class
2019-05-15 15:18:46 -07:00
Benjamin Sergeant
d90b634e80
close and stop with code and reason + docker = ubuntu xenial
2019-05-15 15:18:46 -07:00
Dimon4eg
6dd8cda074
add isEnabledAutomaticReconnection ( #75 )
...
* add isEnabledAutomaticReconnection
* test isEnabledAutomaticReconnection
* rename
2019-05-14 11:26:37 -07:00
Kumamon38
5f3de60962
add more time to let client close ( #73 )
2019-05-13 21:26:34 -07:00
Benjamin Sergeant
80a90496d9
use spdlog for logging in the unittest
2019-05-13 17:32:57 -07:00
Benjamin Sergeant
bbca803840
fix inverted conditional
2019-05-13 17:18:07 -07:00
Benjamin Sergeant
afd8f64da8
travis cmake version on macOS does not know --parallel option
2019-05-13 17:17:35 -07:00
Benjamin Sergeant
6d2548b823
build in parallel + stop building linux + clang
2019-05-13 17:06:56 -07:00
Benjamin Sergeant
642356d353
disable ping tests for now as they are not super reliable
2019-05-13 17:01:22 -07:00
Benjamin Sergeant
ba0fa36c2a
Feature/windows ci ( #76 )
...
* close with params
* ...
* different generator
* core size = 1
* disable more tests to get something working on windows
* try to enable another test on windows
* enable all OS
* set proper version of linux
* another try
* try again with just env variables
* Revert "core size = 1"
This reverts commit 29af74bba6
.
* add windows and mac
* Revert "close with params"
This reverts commit 6bb00b6788
.
2019-05-13 16:51:58 -07:00
Kumamon38
12f6cd878d
save timepoints after connect and not in contructor, adjusted tests ( #72 )
...
* save timepoints after connect and not in contructor, adjusted tests
* move call into setReadyState
* more time to detect client close in test
2019-05-13 09:08:46 -07:00
Dimon4eg
701c3745c2
Fix run.py ( #71 )
...
* fix run.py
* run.py: fix Windows support
* fix test listing
2019-05-12 18:37:22 -07:00
Dimon4eg
4c4f99606e
use C++11 enums ( #67 )
...
* use C++11 enums
* small rename
* update tests
* update tests
* update ws
* update ws
* update README.md
2019-05-11 14:22:06 -07:00
Benjamin Sergeant
a61586c846
add comment about why a unittest is disabled
2019-05-11 12:25:40 -07:00
Dimon4eg
a64b7b0c4a
minor improvements ( #66 )
...
* minor improvements
* fix build
* improve tests code
2019-05-11 12:20:58 -07:00
dimon4eg
5eb23c9764
uncomment test
2019-05-11 10:15:22 -07:00
Benjamin Sergeant
c7f0bf3d64
use spdlog for logging in ws + unittest + remove un-needed mutex
2019-05-09 15:30:44 -07:00
Benjamin Sergeant
9441095637
tweak unittest sleep duration to fix gcc+linux CI
2019-05-09 11:10:39 -07:00
Kumamon38
f82d38f758
Fail test GCC TSAN ( #61 )
...
* test that fails on Run 8
* commented the failing test
2019-05-09 09:33:18 -07:00
Kumamon38
cb1d1bfd85
fix ping, fix send frame close ( #49 )
...
* fix ping, fix send frame close
* fixes for data race on _closeCode etc. and fix test
* fixing one TC
* fix waiting forever if no time to change of readyState, and poll never end
* add 1005 code if no status code received
* fixes for 1005 code
* fix test issue
* fix macOS issue
* revert to master tests and renaming
2019-05-09 09:21:05 -07:00
Dimon4eg
c65cfd3d26
Use LUrlParser to fix issue of Windows ( #53 )
...
LGTM
2019-05-06 14:45:02 -07:00
Dimon4eg
8955462f73
added tests for IXUrlParser ( #52 )
...
* added tests for IXUrlParser
* add me as author
2019-05-06 12:47:15 -07:00
Dimon4eg
78198a0147
Fix windows ( #51 )
...
* More fixes for Windows
* fix tests for windows
* qf for linux
* clean up
2019-05-06 12:22:57 -07:00
Dimon4eg
753fc845ac
Fix for windows ( #50 )
2019-05-06 09:13:42 -07:00
Benjamin Sergeant
8e4cf74974
enable tsan on travis for all configs
2019-04-29 09:11:16 -07:00
Benjamin Sergeant
0a7157655b
initialize netSystem (aka winsock on windows) explicitely
2019-04-25 16:38:15 -07:00
Dimon4eg
58d65926bb
Fixes for windows ( #45 )
...
* init Net system on Windows
* propagate DNS error
* Add zlib 1.2.11 sources
* link zlib statically for windows
* remove not implemented function declaration
* fix connect on Windows
2019-04-25 16:26:53 -07:00
Benjamin Sergeant
9367a1feff
Fix data race in WebSocket where _url is accessed without protection in setThreadName
...
Also fix with url usage + docker container uses fedora and works with tsan
2019-04-25 16:11:46 -07:00
Benjamin Sergeant
d37ed300e2
disable failing unittest temporarily
2019-04-25 09:04:35 -07:00
Benjamin Sergeant
d036ad7138
tsan fix for the IXWebSocketServerTest test, where there's a data race for connectionId
2019-04-24 22:11:14 -07:00
Benjamin Sergeant
d48bf9249b
indentation / comestic changes
2019-04-19 16:57:38 -07:00
Benjamin Sergeant
0dfc66f1c7
(test) / use a random number generator to get a free port, when the bind to port 0 strategy does not work out
2019-04-19 16:50:04 -07:00
Benjamin Sergeant
b60e5aaf1f
default sanitizer choice
2019-04-19 15:13:59 -07:00
Benjamin Sergeant
da67f4cb9a
disable clang sanitizers in CI on any platforms but Darwin
2019-04-19 15:09:01 -07:00
Benjamin Sergeant
f83263d6a1
(unittest) upgrade to Catch2 version 2.7.1
2019-04-19 14:41:03 -07:00
Benjamin Sergeant
0ba2e2ce96
uses sh syntax to capture output
2019-04-19 12:40:39 -07:00
Benjamin Sergeant
4a91ad80c8
(ci) verbose mode to figure out Linux build problems on travis
2019-04-19 12:10:43 -07:00
Benjamin Sergeant
4cc715b13d
Windows nmake does not have a -j flag
2019-04-19 11:58:02 -07:00
Benjamin Sergeant
0dfd7cd543
Windows + unittest python script fixes
2019-04-19 11:54:58 -07:00
Benjamin Sergeant
65db8c9b00
(test) build dir is an absolute path
2019-04-19 11:45:02 -07:00