mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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:
@@ -61,13 +61,11 @@ String ChildProcess::readAllProcessOutput()
|
||||
|
||||
//==============================================================================
|
||||
|
||||
class ChildProcessTests : public UnitTest
|
||||
class ChildProcess_test : public unit_test::suite
|
||||
{
|
||||
public:
|
||||
void runTest()
|
||||
void run()
|
||||
{
|
||||
beginTestCase ("Child Processes");
|
||||
|
||||
#if BEAST_WINDOWS || BEAST_MAC || BEAST_LINUX
|
||||
ChildProcess p;
|
||||
|
||||
@@ -87,17 +85,13 @@ public:
|
||||
//expect (output.isNotEmpty());
|
||||
#endif
|
||||
}
|
||||
|
||||
// VFALCO NOTE I had to disable this test because it was leaving
|
||||
// behind a zombie process and making other unit tests fail.
|
||||
// It doesnt happen with a debugger attached, or if the
|
||||
// unit test is run individually.
|
||||
//
|
||||
ChildProcessTests() : UnitTest ("ChildProcess", "beast", runManual)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
static ChildProcessTests childProcessTests;
|
||||
// VFALCO NOTE I had to disable this test because it was leaving
|
||||
// behind a zombie process and making other unit tests fail.
|
||||
// It doesnt happen with a debugger attached, or if the
|
||||
// unit test is run individually.
|
||||
//
|
||||
BEAST_DEFINE_TESTSUITE_MANUAL(ChildProcess,beast_core,beast);
|
||||
|
||||
} // namespace beast
|
||||
} // beast
|
||||
|
||||
Reference in New Issue
Block a user