diff --git a/tests/test.cpp b/tests/test.cpp index f2b0d84ef7..76a99d1134 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -171,7 +171,13 @@ static void TestAssertHandler(const wxString& file, CATCH_TRANSLATE_EXCEPTION(TestAssertFailure& e) { - return e.m_msg.ToStdString(wxConvUTF8); + wxString desc = e.m_msg; + if ( desc.empty() ) + desc.Printf(wxASCII_STR("Condition \"%s\" failed"), e.m_cond); + + desc += wxString::Format(wxASCII_STR(" in %s() at %s:%d"), e.m_func, e.m_file, e.m_line); + + return desc.ToStdString(wxConvUTF8); } #endif // wxDEBUG_LEVEL