We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
The following
try { std::string a{ "string" }; std::string const expected{ "string" }; REQUIRE_THAT(a, Matches(expected)); } catch (std::exception const& e) { std::cerr << std::format("caught '{}'\n", e.what()); }
works as expected. If I get a bigger expected string (e.g. ~110kByte) it crashes with
... [ctest] due to a fatal error condition: [ctest] SIGSEGV - Segmentation violation signal
The problem is related to the Matches matcher - the following doesn't crash:
Matches
// Catch2's matchers haven't support for string_view std::string const expected_str{ csv_data::CsvSV }; try { std::string a{ "string" }; REQUIRE_THAT(expected_str, Matches(a)); } catch (std::exception const& e) { std::cerr << std::format("caught '{}'\n", e.what()); }
Expected behavior I must not crash in that way, even I've a try/catch block/scope!
Reproduction steps
See above.
Platform information:
Additional context
constexpr std::string_view const CsvSV = R"(0,0.999994607194946,... ... ...,0.783392372240895 )";
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The following
works as expected. If I get a bigger expected string (e.g. ~110kByte) it crashes with
The problem is related to the
Matches
matcher - the following doesn't crash:Expected behavior
I must not crash in that way, even I've a try/catch block/scope!
Reproduction steps
See above.
Platform information:
Additional context
The text was updated successfully, but these errors were encountered: