Show assert stack if in the test if possible

Make wxAppTraitsBase::GetAssertStackTrace() and reuse it in the assert
handler defined in the test to show more information about the asserts,
especially those failing in worker threads, if possible.
This commit is contained in:
Vadim Zeitlin
2021-04-07 14:37:16 +02:00
parent fb136cf154
commit 9437a6abf0
3 changed files with 24 additions and 4 deletions

View File

@@ -164,11 +164,13 @@ public:
}
protected:
#if wxUSE_STACKWALKER
// utility function: returns the stack frame as a plain wxString
// Helper function mostly useful for derived classes ShowAssertDialog()
// implementation.
//
// Returns the stack frame as a plain (and possibly empty) wxString.
virtual wxString GetAssertStackTrace();
#endif
#endif // wxUSE_STACKWALKER
private:
static wxSocketManager *ms_manager;