mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Allow to test an ASSERT (like the crashdump test)
This commit is contained in:
committed by
Mat Sutcliffe
parent
f6690136f2
commit
33cd96c2e3
@@ -1649,6 +1649,11 @@ namespace BlackCore
|
||||
CCrashHandler::instance()->simulateCrash();
|
||||
}
|
||||
|
||||
void CApplication::simulateAssert()
|
||||
{
|
||||
CCrashHandler::instance()->simulateAssert();
|
||||
}
|
||||
|
||||
void CApplication::enableCrashDumpUpload(bool enable)
|
||||
{
|
||||
CCrashHandler::instance()->setUploadsEnabled(enable);
|
||||
|
||||
@@ -309,6 +309,10 @@ namespace BlackCore
|
||||
//! \private only for testing purposes
|
||||
void simulateCrash();
|
||||
|
||||
//! Simulate an ASSERT
|
||||
//! \private only for testing purposes
|
||||
void simulateAssert();
|
||||
|
||||
//! Enable crash upload
|
||||
//! \remark only change for testing
|
||||
void enableCrashDumpUpload(bool enable);
|
||||
|
||||
Reference in New Issue
Block a user