Skip to content

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