From 5f6e2ee0263e53c543e4f7aec4a20169c3c4f717 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 6 Sep 2013 07:41:04 -0700 Subject: [PATCH] Add Debug unit test to check bassert behavior --- modules/beast_core/diagnostic/beast_Debug.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/beast_core/diagnostic/beast_Debug.cpp b/modules/beast_core/diagnostic/beast_Debug.cpp index 488e030d3..3580b0454 100644 --- a/modules/beast_core/diagnostic/beast_Debug.cpp +++ b/modules/beast_core/diagnostic/beast_Debug.cpp @@ -293,3 +293,22 @@ String commandLineToString (const String& commandLine) } } + +//------------------------------------------------------------------------------ + +class DebugTests : public UnitTest +{ +public: + DebugTests () : UnitTest ("Debug", "beast", runManual) + { + } + + void runTest () + { + beginTestCase ("bassert"); + bassertfalse; + fail (); + } +}; + +static DebugTests debugTests;