diff options
| author | Martin Hořeňovský | 2022-04-24 12:25:46 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-04-24 13:31:19 +0200 |
| commit | 07cdef2096ad38ec386ee5e4d7705978038dc651 (patch) | |
| tree | 641e5675e858e7d6a637e03deb4fb6d0013672e1 /tests/SelfTest/IntrospectiveTests/Clara.tests.cpp | |
| parent | 5baa29b6b9405913455ba5f628679575c7b915ee (diff) | |
| download | catch3-07cdef2096ad38ec386ee5e4d7705978038dc651.tar.gz | |
Fix uninit memory in Clara tests
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/Clara.tests.cpp')
| -rw-r--r-- | tests/SelfTest/IntrospectiveTests/Clara.tests.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp b/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp index f6110a7b..2cbf05b8 100644 --- a/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp @@ -52,12 +52,11 @@ TEST_CASE("Clara::Arg supports single-arg parse the way Opt does", "[clara][arg] } TEST_CASE("Clara::Opt supports accept-many lambdas", "[clara][opt]") { - std::string name; using namespace Catch::Clara; std::vector<std::string> res; const auto push_to_res = [&](std::string const& s) { res.push_back(s); - return ParserResult::ok(); + return ParserResult::ok( ParseResultType::Matched ); }; SECTION("Parsing fails on multiple options without accept_many") { |