mirror of https://github.com/ARMmbed/mbed-os.git
Unity: Add failure ignoring callback.
parent
633588dc35
commit
bc25003d41
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue