From 1052353fb40804fb1a5ee5f00260e65da1a13206 Mon Sep 17 00:00:00 2001 From: Jarek Bialas Date: Sat, 25 Nov 2023 13:49:50 +0100 Subject: [PATCH] Fix incorrect regexp for fail check --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 172abc8..2105fcc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,15 +74,15 @@ if(RESULT_CODE_ENABLE_TESTS) ADD_FAILING_TEST(TARGET FAIL_NARROWING_ASSIGNEMENT SOURCE will_fail.cpp DEFINE FAIL_NARROWING_ASSIGNEMENT MATCH_STR "no matching function for call to.*Result::Success") ADD_FAILING_TEST(TARGET FAIL_NO_CTOR1 SOURCE will_fail.cpp DEFINE FAIL_NO_CTOR1 - MATCH_STR "no matching function for call to.*Result::ResultValue::ResultValue") + MATCH_STR "no matching function for call to.*Result::Expected::Expected") ADD_FAILING_TEST(TARGET FAIL_NO_CTOR2 SOURCE will_fail.cpp DEFINE FAIL_NO_CTOR2 - MATCH_STR "no matching function for call to.*Result::ResultValue::ResultValue") + MATCH_STR "no matching function for call to.*Result::Expected::Expected") ADD_FAILING_TEST(TARGET FAIL_NO_IMPLICIT_BOOL_CONVERSION SOURCE will_fail.cpp DEFINE FAIL_NO_IMPLICIT_BOOL_CONVERSION - MATCH_STR "cannot convert.*Result::ResultValue.*to.*bool") + MATCH_STR "cannot convert.*Result::Expected.*to.*bool") ADD_FAILING_TEST(TARGET FAIL_NO_IMPLICIT_VALUE_GET SOURCE will_fail.cpp DEFINE FAIL_NO_IMPLICIT_VALUE_GET - MATCH_STR "cannot convert.*Result::ResultValue.*to.*int") + MATCH_STR "cannot convert.*Result::Expected.*to.*int") ADD_FAILING_TEST(TARGET FAIL_NO_STATIC_CAST_VALUE SOURCE will_fail.cpp DEFINE FAIL_NO_STATIC_CAST_VALUE - MATCH_STR "invalid.*static_cast.*Result::ResultValue.*to type.*int") + MATCH_STR "invalid.*static_cast.*Result::Expected.*to type.*int") ADD_FAILING_TEST(TARGET FAIL_NO_THROW_FOR_NON_TRIVIAL_VALUE SOURCE will_fail.cpp DEFINE FAIL_NO_THROW_FOR_NON_TRIVIAL_VALUE MATCH_STR "error: no matching function for call to.*value\(\)") ADD_FAILING_TEST(TARGET FAIL_NO_THROW_FOR_NON_TRIVIAL_ERROR SOURCE will_fail.cpp DEFINE FAIL_NO_THROW_FOR_NON_TRIVIAL_ERROR