Dump information about both events when we received two of them instead of the
(single) expected one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62486
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
CPPUNIT_ASSERT_MESSAGE( "No events received", !m_events.empty() );
{
CPPUNIT_ASSERT_MESSAGE( "No events received", !m_events.empty() );
+ const wxFileSystemWatcherEvent * const e = m_events.front();
+
WX_ASSERT_EQUAL_MESSAGE
(
(
WX_ASSERT_EQUAL_MESSAGE
(
(
- "Extra event received, last has type=%x, path=\"%s\"",
+ "Extra events received, first is of type %x, for path=\"%s\","
+ "last is of type %x, path=\"%s\"",
+ e->GetChangeType(),
+ e->GetPath().GetFullPath(),
m_events.back()->GetChangeType(),
m_events.back()->GetPath().GetFullPath()
),
1, m_events.size()
);
m_events.back()->GetChangeType(),
m_events.back()->GetPath().GetFullPath()
),
1, m_events.size()
);
- const wxFileSystemWatcherEvent * const e = m_events.front();
-
// this is our "reference event"
const wxFileSystemWatcherEvent expected = ExpectedEvent();
// this is our "reference event"
const wxFileSystemWatcherEvent expected = ExpectedEvent();