Mercurial > hg > sonic-annotator
comparison 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 |
comparison
equal
deleted
inserted
replaced
27:9fef62a3696d | 28:102bb1729184 |
---|---|
718 sources.push_back(*i); | 718 sources.push_back(*i); |
719 } | 719 } |
720 } | 720 } |
721 } | 721 } |
722 | 722 |
723 bool good = true; | |
724 | |
723 for (QStringList::const_iterator i = sources.begin(); | 725 for (QStringList::const_iterator i = sources.begin(); |
724 i != sources.end(); ++i) { | 726 i != sources.end(); ++i) { |
725 std::cerr << "Extracting features for: \"" << i->toStdString() << "\"" << std::endl; | 727 std::cerr << "Extracting features for: \"" << i->toStdString() << "\"" << std::endl; |
726 try { | 728 try { |
727 manager.extractFeatures(*i); | 729 manager.extractFeatures(*i); |
735 QStringList::const_iterator j = i; | 737 QStringList::const_iterator j = i; |
736 if (++j != sources.end()) { | 738 if (++j != sources.end()) { |
737 cerr << "NOTE: \"--force\" option was provided, continuing (more errors may occur)" << endl; | 739 cerr << "NOTE: \"--force\" option was provided, continuing (more errors may occur)" << endl; |
738 } | 740 } |
739 } else { | 741 } else { |
742 good = false; | |
740 break; | 743 break; |
741 } | 744 } |
742 } | 745 } |
743 } | 746 } |
744 | 747 |
754 settings.endGroup(); | 757 settings.endGroup(); |
755 #endif | 758 #endif |
756 | 759 |
757 TempDirectory::getInstance()->cleanup(); | 760 TempDirectory::getInstance()->cleanup(); |
758 | 761 |
759 return 0; | 762 if (good) return 0; |
763 else return 1; | |
760 } | 764 } |
761 | 765 |
762 | 766 |