Commit Graph

4277 Commits

Author SHA1 Message Date
Maxim Biro
bd47ae56ef Fix compiler warning due to missing void 2017-08-22 04:10:45 -04:00
Maxim Biro
346d80207f Fix FreeBSD failing on Travis after update 2017-08-22 04:10:45 -04:00
Maxim Biro
7837659eda Update FreeBSD version on Travis to 11.1 2017-08-22 04:10:45 -04:00
Maxim Biro
889d25f819 Define INADDR_LOOPBACK on systems not defining it 2017-08-22 04:10:45 -04:00
Maxim Biro
e9e5f57a2c Disable MSG_NOSIGNAL on systems not supporting it 2017-08-22 04:10:45 -04:00
Maxim Biro
8dc261fcf2 Disable compiler thread safety analysis 2017-08-22 04:10:45 -04:00
Maxim Biro
1aa75e1705 Update FreeBSD image on new tag
Instead of updating it in every Travis build.
2017-08-22 04:10:45 -04:00
Maxim Biro
e4b74b0f3e Allow FreeBSD tests to fail 2017-08-22 04:08:22 -04:00
Maxim Biro
f495cf1a8d Test toxcore on FreeBSD on Travis 2017-08-22 04:08:22 -04:00
Robin Lindén
6295d28a1e
Release v0.1.10 2017-08-06 12:22:48 +02:00
zugz
5dd255729a
Save bandwidth by moderating onion pinging. 2017-08-05 15:06:44 +02:00
Maxim Biro
1b290c0d84 Fix Windows build 2017-06-09 23:18:43 -04:00
Robin Lindén
a429ef4a28
Release v0.1.9 2017-06-06 22:50:57 +02:00
Maxim Biro
b02f68bb4b Remove unused variable 2017-06-06 15:37:02 -04:00
Maxim Biro
be76379ddb Fix non-portable zeroing out of doubles 2017-06-06 13:39:41 -04:00
Maxim Biro
a680d1fdfc Fix theoretical memory leaks 2017-06-05 16:58:39 -04:00
iphydf
8479b82431
Fold hstox tests into the general linux test.
We can run the spectest from within cmake, so we should exercise that.
2017-06-05 19:55:32 +00:00
iphydf
cb69b8a986
Build tests on appveyor, the MSVC build.
Tests are not actually ran on appveyor for now, since they all fault for
some reason. For now, we just build them. Also, some tests are disabled
on msvc entirely, because they don't even compile. We'll need to look
into those, later. They are disabled using `MSVC_DONT_BUILD`.
2017-06-05 13:45:20 +00:00
pranomostro
7f5b057b05
Add test for changing the conference title and not receiving a callback. 2017-06-05 12:50:58 +00:00
iphydf
1bbe446760
Document inverted mutex lock/unlock.
All other code in this file does lock/call/unlock, except this one
instance, so we should explain why.
2017-06-05 12:18:26 +00:00
Diadlo
ced07d6700
Change way to iterate through assoc 2017-06-05 02:05:53 +03:00
Diadlo
f9607bced5
Make work with assoc more generic 2017-06-05 02:05:34 +03:00
Diadlo
91e3eb0159
Improve formatting and syntax 2017-06-05 02:04:43 +03:00
Diadlo
6a69e07109
Cleanup punch_holes 2017-06-05 02:04:38 +03:00
Diadlo
3902fd3cee
Add using id_equal 2017-06-05 02:04:32 +03:00
Diadlo
7864f8d0a2
Update crypto_size and check index 2017-06-05 02:04:30 +03:00
Diadlo
d9503763b3
Extract 'update_client_data' to reduce code duplication 2017-06-05 02:02:45 +03:00
Diadlo
ffcee69db9
Extract 'update_client_with_reset' function to reduce code duplication 2017-06-05 02:02:33 +03:00
Diadlo
0eaa44650f
Extract 'update_client' function
To make 'client_or_ip_port_in_list' code easy to read
2017-06-05 02:02:31 +03:00
Diadlo
71260e38e8
Extract variables 2017-06-05 01:51:12 +03:00
Diadlo
69c71ddd23
Change return type to be the same as return value type
Return value of 'addto_list' function is 'used' counter, which is uint32_t.
It will be better to use the same return type.
2017-06-05 01:51:12 +03:00
Diadlo
6197494d6b
Add using macros to improve code 2017-06-05 01:51:12 +03:00
Diadlo
db7b422f0c
Add 'index_of' functions
- Replace 'for' with long body
- Replace friend_number function on index_of_friend_pk
- Replace client_in_nodelist on index_of_node_pk
2017-06-05 01:51:12 +03:00
Diadlo
b3174bb6c4
Extract SharedKey struct and use it as var instead of indexing 2017-06-05 01:51:11 +03:00
Diadlo
c12ef22138
Add using C99 'for' syntax 2017-06-05 01:09:39 +03:00
Maxim Biro
b0aec02225 Split daemon's logging backends in separate modules 2017-06-04 16:07:03 -04:00
iphydf
1e8fa85aad
Add a monolith_test that includes all toxcore sources.
This requires that every symbol, even if static (file-scope), is unique.
The idea is that we can easily run "whole" program static analysis on
programs that include monolith.h ("whole" is in quotes, as we don't
include dependencies like libsodium in this static analysis).
2017-06-04 17:48:23 +00:00
pranomostro
03f99bde2e
Test for memberlist not changing after changing own name.
This test shows that the conference members callback is not invoked when
the own name changes.
2017-06-04 13:40:44 +00:00
iphydf
41850deb43
Factor out strict_abi cmake code into a separate module. 2017-06-04 12:20:35 +00:00
iphydf
b782ef5d8e
Fix formatting and spelling in version-sync script.
Also some minor reformatting and fixes to the hstox sut driver.
2017-06-04 12:07:43 +00:00
iphydf
cda770cfe1
Forbid undefined symbols in shared libraries.
Also a little bit of refactoring:
- Moved add_cflag and friends from CMakeLists.txt to a separate
  AddCompilerFlag module.
- Build the spectest SUT if msgpack is found, even if spectest itself is
  not found, so once it exists, users can run it themselves or
  reconfigure cmake.
2017-06-04 10:08:51 +00:00
iphydf
d4be41a3ad
Use new encoding of Maybe in msgpack results.
The new encoding is `0` for `Nothing` and `[1, x]` for `Just x`.
2017-06-03 23:32:46 +00:00
iphydf
a8866fc17f
Make OSX test failures fail the Travis CI build. 2017-05-13 22:26:46 +02:00
pranomostro
7ef27a9105 Make variable names in file saving test less cryptic. 2017-05-13 22:59:50 +02:00
zugz
2474f43087
check if already in close list in ping_node_from_getnodes_ok()
fix index bounds check in add_to_close() and is_pk_in_close_list()

add TODO to write test for bug which fixed by this commit
2017-04-29 18:28:28 +02:00
Robin Lindén
f6db9333e2
Release v0.1.8 2017-04-27 20:20:19 +02:00
Maxim Biro
c25e3d2d7c Revert "initial version of tox_loop"
This reverts commit 200ee1cace.
2017-04-22 15:31:25 -04:00
Maxim Biro
c7f63737eb Revert "Implement tox_loop"
This reverts commit 5ff099763b.
2017-04-22 15:31:25 -04:00
Maxim Biro
5ed37e5438 Revert "Fix TokTok/c-toxcore#535"
This reverts commit 439f676d45.
2017-04-22 15:31:25 -04:00
Maxim Biro
f6285d7a60 Fix markdown formatting 2017-04-19 20:22:28 -04:00