From: khizmax Date: Fri, 29 Jul 2016 16:05:07 +0000 (+0300) Subject: improved test error msg X-Git-Tag: v2.2.0~167 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2bfc7c1c9a7b1f901fa4493c6eae781944b7598c;p=libcds.git improved test error msg --- diff --git a/test/stress/pqueue/pop.cpp b/test/stress/pqueue/pop.cpp index dca55a30..b6f2f935 100644 --- a/test/stress/pqueue/pop.cpp +++ b/test/stress/pqueue/pop.cpp @@ -160,8 +160,11 @@ namespace { if ( !cons.m_arrFailedPops.empty() ) { std::cerr << "Priority violations, thread " << i; for ( size_t k = 0; k < cons.m_arrFailedPops.size(); ++k ) { - std::cerr << "\n " << "prev_key=" << cons.m_arrFailedPops[k].prev_key << " popped_key=" << cons.m_arrFailedPops[k].popped_key - << " next_key=" << cons.m_arrFailedPops[k].next_key; + std::cerr << "\n " << "prev_key=" << cons.m_arrFailedPops[k].prev_key << " popped_key=" << cons.m_arrFailedPops[k].popped_key; + if ( cons.m_arrFailedPops[k].next_key != static_cast(-1) ) + std::cerr << " next_key=" << cons.m_arrFailedPops[k].next_key; + else + std::cerr << " next_key unspecified"; } std::cerr << std::endl; }