New unit_test framework:

* Header-only!
* No external dependencies or other beast modules
* Compilation options allow for:
  - Stand-alone application to run a single test suite
  - Stand-alone application to run a set of test suites
  - Global suite of tests inline with the host application
  - Disable test suite generation completely
* Existing tests reworked to use the new classes
This commit is contained in:
Vinnie Falco
2014-03-20 17:25:39 -07:00
parent 0bb6171a85
commit f63cf33118
114 changed files with 3259 additions and 4312 deletions

View File

@@ -22,6 +22,11 @@
//==============================================================================
#include "../Thread.h"
#include "../../smart_ptr/SharedObject.h"
#include "../../smart_ptr/SharedPtr.h"
#include "../../../modules/beast_core/time/Time.h"
#include <cassert>
namespace beast {
@@ -44,7 +49,7 @@ Thread::~Thread()
To avoid this type of nastiness, always make sure you call stopThread() before or during
your subclass's destructor.
*/
check_precondition (! isThreadRunning());
assert (! isThreadRunning());
stopThread ();
}