Improved error messages
authorkhizmax <khizmax@gmail.com>
Thu, 28 Jul 2016 09:50:11 +0000 (12:50 +0300)
committerkhizmax <khizmax@gmail.com>
Thu, 28 Jul 2016 09:50:11 +0000 (12:50 +0300)
test/stress/pqueue/pop.cpp

index cbca72d..c9e6823 100644 (file)
@@ -200,9 +200,9 @@ namespace {
                     nTotalFailed  += cons.m_nPopFailed;
 
                     if ( !cons.m_arrFailedPops.empty() ) {
-                        std::cerr << "Failed pop:";
+                        std::cerr << "Priority violations, thread " << i;
                         for ( size_t k = 0; k < cons.m_arrFailedPops.size(); ++k ) {
-                            std::cerr << "\nThread " << i << ": prev_key=" << cons.m_arrFailedPops[k].prev_key << " popped_key=" << cons.m_arrFailedPops[k].popped_key;
+                            std::cerr << "\n    " << "prev_key=" << cons.m_arrFailedPops[k].prev_key << " popped_key=" << cons.m_arrFailedPops[k].popped_key;
                         }
                         std::cerr << std::endl;
                     }