diff --git "a/frameworks\\utest/source/unity_handler.cpp" "b/frameworks\\utest/source/unity_handler.cpp" index 5baaa6cb8f..b40978c75d 100644 --- "a/frameworks\\utest/source/unity_handler.cpp" +++ "b/frameworks\\utest/source/unity_handler.cpp" @@ -23,3 +23,9 @@ void utest_unity_assert_failure() { utest::v1::Harness::raise_failure(utest::v1::FAILURE_ASSERTION); } + +extern "C" +void utest_unity_ignore_failure() +{ + utest::v1::Harness::raise_failure(utest::v1::failure_t(utest::v1::FAILURE_ASSERTION | utest::v1::FAILURE_IGNORE)); +} diff --git "a/frameworks\\utest/utest/unity_handler.h" "b/frameworks\\utest/utest/unity_handler.h" index 8ce3d06a3f..5982ff88a9 100644 --- "a/frameworks\\utest/utest/unity_handler.h" +++ "b/frameworks\\utest/utest/unity_handler.h" @@ -24,4 +24,7 @@ /// this function is called from the unity module when an assertion failed. void utest_unity_assert_failure(); +/// this function is called from the unity module when an assertion failed, but is ignored. +void utest_unity_ignore_failure(); + #endif // UTEST_UNITY_ASSERT_FAILURE_H