Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several changes/fixes #15

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Several changes/fixes #15

wants to merge 7 commits into from

Conversation

dacap
Copy link

@dacap dacap commented Aug 9, 2022

I'm sending tihs set of changes that could be integrated (as a whole or cherry-picking specific changes) or used by others. It includes:

  1. Add a new CPPACK_TESTS option to disable tests if needed
  2. Compile with Catch2 using cmake FetchContent (so there is no need to install Catch2)
  3. Fixing compilation in all platforms (MSVC, clang/macOS, Linux)
  4. Replacing Travis-CI with GitHub actions
  5. And the most important, fixing a bug in release mode where multiple instances of UnpackerErrCategory make comparison between different UnpackerError fail

dacap added 7 commits August 9, 2022 19:55
This is a problem in Release compilation where the
theUnpackerErrCategory variable is optimized and created on each
compilation unit, and then the error_handling.cpp test fails in:

  REQUIRE(ec == msgpack::UnpackerError::OutOfRange);

Because the category is different on each compilation unit.
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.

1 participant