[#test_only_CheckFailuresAreExceptionsNotAborts]
= test&lowbar;only&lowbar;CheckFailuresAreExceptionsNotAborts
:mrdocs:

RAII guard that makes failed checks throw instead of abort for the duration of a test&period;

== Synopsis

Declared in `&lt;util&sol;check&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct test&lowbar;only&lowbar;CheckFailuresAreExceptionsNotAborts;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:test_only_CheckFailuresAreExceptionsNotAborts/2constructor.adoc[`test&lowbar;only&lowbar;CheckFailuresAreExceptionsNotAborts`]         [.small]#[constructor]#
| Enable throwing on check failure for the lifetime of this object&period;
| xref:test_only_CheckFailuresAreExceptionsNotAborts/2destructor.adoc[`&#126;test&lowbar;only&lowbar;CheckFailuresAreExceptionsNotAborts`] [.small]#[destructor]#
| Restore the default abort&hyphen;on&hyphen;check&hyphen;failure behavior&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
