mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +00:00
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:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user