diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-04-10 13:53:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-04-10 13:53:07 +0100 |
| commit | 23e62ea48ec4da80cc37895c7dbb9826063fada8 (patch) | |
| tree | 8618237882bfbc8953ab86128a45442a4db619eb | |
| parent | 10bda455969274895091828a546f1e56e9e4be17 (diff) | |
More comprehensive error report from tests.
| -rw-r--r-- | test/test.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index f393e80c3..3f044acf1 100644 --- a/test/test.cc +++ b/test/test.cc @@ -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"; } } } |
