Skip to content

Conversation

@redboltz
Copy link
Owner

The tests forcused on using it on the broker.

The tests forcused on using it on the broker.
@kleunen
Copy link
Contributor

kleunen commented Oct 16, 2020

@redboltz To build the unit test with MSVC with boost dynamic linkage, i need to define BOOST_TEST_SOURCE to be able to compile the tests. They do say that 'this is a hack': http://boost.2283326.n4.nabble.com/Boost-unit-test-cpp-problem-when-try-to-compile-simple-program-td2596687.html

// Copyright Takatoshi Kondo 2015
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#if !defined(MQTT_TEST_MAIN_HPP)
#define MQTT_TEST_MAIN_HPP

#define BOOST_TEST_SOURCE
#define BOOST_TEST_MODULE mqtt_client_cpp_test
#include <boost/test/unit_test.hpp>

#endif // MQTT_TEST_MAIN_HPP

@redboltz
Copy link
Owner Author

Please don't push, because I am editing also.

Now #687 is unstable. Several hours ago , the Linux CI failure is caused by environmental issue. It seems that the issue is fixed by github actions side. And then, new hash_value issue is reported. I need to fix it.

@redboltz
Copy link
Owner Author

I will ask you to rebase #688 from sub_map_test after I fixed the problem.

@redboltz redboltz force-pushed the sub_map_test branch 2 times, most recently from a5a9369 to e4d0f0f Compare October 16, 2020 09:58
@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #687 into master will decrease coverage by 0.46%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #687      +/-   ##
==========================================
- Coverage   82.70%   82.23%   -0.47%     
==========================================
  Files          46       47       +1     
  Lines        7082     7100      +18     
==========================================
- Hits         5857     5839      -18     
- Misses       1225     1261      +36     

kleunen and others added 4 commits October 16, 2020 13:13
…th to insert and return whether element was inserted or already exists
…_map return the number of elements that were removed
Renamed insert_or_update and update from multiple_subscription_map bo…
It seems that memory swap happens.
The same macro is defined at Linux build.
They are pure logical macros. It is good enough.
@redboltz redboltz merged commit 228ddff into master Oct 16, 2020
@redboltz redboltz deleted the sub_map_test branch October 16, 2020 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants