diff runner/main.cpp @ 28:102bb1729184 sonic-annotator-0.4

* Test fixes for cases where the behaviour has actually been fixed for 0.4 * Emphasise this change in CHANGELOG
author Chris Cannam
date Fri, 25 Sep 2009 12:00:58 +0000
parents 18c42fbc1335
children 69c438d4b9d3
line wrap: on
line diff
--- a/runner/main.cpp	Thu Sep 24 14:34:00 2009 +0000
+++ b/runner/main.cpp	Fri Sep 25 12:00:58 2009 +0000
@@ -720,6 +720,8 @@
         }
     }
 
+    bool good = true;
+
     for (QStringList::const_iterator i = sources.begin();
          i != sources.end(); ++i) {
         std::cerr << "Extracting features for: \"" << i->toStdString() << "\"" << std::endl;
@@ -737,6 +739,7 @@
                     cerr << "NOTE: \"--force\" option was provided, continuing (more errors may occur)" << endl;
                 }
             } else {
+                good = false;
                 break;
             }
         }
@@ -756,7 +759,8 @@
 
     TempDirectory::getInstance()->cleanup();
     
-    return 0;
+    if (good) return 0;
+    else return 1;
 }