From 0bbad54a3623bfcb7389d32334d6715d36290502 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 --- .../beast_core/diagnostic/beast_Debug.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Subtrees/beast/modules/beast_core/diagnostic/beast_Debug.cpp b/Subtrees/beast/modules/beast_core/diagnostic/beast_Debug.cpp index 488e030d3..3580b0454 100644 --- a/Subtrees/beast/modules/beast_core/diagnostic/beast_Debug.cpp +++ b/Subtrees/beast/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;