More comprehensive error report from tests.
authorCarl Hetherington <cth@carlh.net>
Thu, 10 Apr 2014 12:53:07 +0000 (13:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 10 Apr 2014 12:53:07 +0000 (13:53 +0100)
test/test.cc

index f393e80c33ba0c414909ad3af2d51232b8434f98..3f044acf1fc97ffa7cde203e7127bea7b5c1aa0f 100644 (file)
@@ -223,10 +223,19 @@ wait_for_jobs ()
                ui_signaller->ui_idle ();
        }
        if (jm->errors ()) {
+               int N = 0;
                for (list<shared_ptr<Job> >::iterator i = jm->_jobs.begin(); i != jm->_jobs.end(); ++i) {
                        if ((*i)->finished_in_error ()) {
-                               cerr << (*i)->error_summary () << "\n"
-                                    << (*i)->error_details () << "\n";
+                               ++N;
+                       }
+               }
+               cerr << N << " errors.\n";
+
+               for (list<shared_ptr<Job> >::iterator i = jm->_jobs.begin(); i != jm->_jobs.end(); ++i) {
+                       if ((*i)->finished_in_error ()) {
+                               cerr << (*i)->name() << ":\n"
+                                    << "\tsummary: " << (*i)->error_summary () << "\n"
+                                    << "\tdetails: " << (*i)->error_details () << "\n";
                        }
                }
        }