Add some debugging for the weird 'you must add some content' occasional test failure.
authorCarl Hetherington <cth@carlh.net>
Thu, 4 Jun 2015 09:59:09 +0000 (10:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Jun 2015 09:59:09 +0000 (10:59 +0100)
test/test.cc

index 4eafe4ed0d63220a4328bb334bdef594fdceb5ad..b7ae1dec90aff95afa51da555bd6f360ee2b1db0 100644 (file)
@@ -288,6 +288,8 @@ wait_for_jobs ()
        while (jm->work_to_do ()) {
                signal_manager->ui_idle ();
        }
+
+       cout << "Waiting for jobs: all finished; errors=" << jm->errors() << ".\n";
        
        if (jm->errors ()) {
                int N = 0;
@@ -310,7 +312,10 @@ wait_for_jobs ()
        signal_manager->ui_idle ();
 
        if (jm->errors ()) {
+               cout << "Dropping JobManager\n";
                JobManager::drop ();
+       } else {
+               cout << "Not dropping JobManager\n";
        }
 }