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
This commit is contained in:
Vadim Zeitlin 2014-05-17 12:29:02 +00:00
parent aeef5a4c29
commit 898562f7d3

View File

@ -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())
{