From 898562f7d306e3e7613eb37d35a93cc03e82643a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 May 2014 12:29:02 +0000 Subject: [PATCH] Make assert message in GraphicsContextDrawingTestCase more informative. Include the paths of the files that we failed to copy. See #16260. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/drawing/drawing.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/drawing/drawing.cpp b/tests/drawing/drawing.cpp index a2edab5e5e..89dc4762cb 100644 --- a/tests/drawing/drawing.cpp +++ b/tests/drawing/drawing.cpp @@ -143,8 +143,11 @@ void GraphicsContextDrawingTestCase::RunIndividualDrawingCase ( if (GetBuildReference()) { - CPPUNIT_ASSERT(wxCopyFile (fileName.GetFullPath(), - refFileName.GetFullPath(), true)); + WX_ASSERT_MESSAGE( + ("Cannot copy file \"%s\" to \"%s\".", + fileName.GetFullPath(), refFileName.GetFullPath()), + wxCopyFile (fileName.GetFullPath(), + refFileName.GetFullPath(), true)); } else if (gcFactory.UseImageComparison()) {