Mercurial > hg > vamp-plugin-tester
comparison vamp-plugin-tester.cpp @ 37:a835f9cf3a3d
"No plugins found" case should return error code
author | Chris Cannam |
---|---|
date | Sat, 26 Jul 2014 10:23:04 +0100 |
parents | 005ac7a3d827 |
children | 07144cdcbedf |
comparison
equal
deleted
inserted
replaced
36:7d4c98c696a5 | 37:a835f9cf3a3d |
---|---|
127 Vamp::HostExt::PluginLoader::PluginKeyList keys = | 127 Vamp::HostExt::PluginLoader::PluginKeyList keys = |
128 Vamp::HostExt::PluginLoader::getInstance()->listPlugins(); | 128 Vamp::HostExt::PluginLoader::getInstance()->listPlugins(); |
129 if (keys.size() == 0) { | 129 if (keys.size() == 0) { |
130 cout << name << ": NOTE: No plugins found!" << endl; | 130 cout << name << ": NOTE: No plugins found!" << endl; |
131 cout << name << ": (No libraries in search path, or no descriptors in library)" << endl; | 131 cout << name << ": (No libraries in search path, or no descriptors in library)" << endl; |
132 return 2; | |
132 } | 133 } |
133 int notes = 0, warnings = 0, errors = 0; | 134 int notes = 0, warnings = 0, errors = 0; |
134 for (int i = 0; i < (int)keys.size(); ++i) { | 135 for (int i = 0; i < (int)keys.size(); ++i) { |
135 cout << "Testing plugin: " << keys[i] << endl; | 136 cout << "Testing plugin: " << keys[i] << endl; |
136 Tester tester(keys[i], opts); | 137 Tester tester(keys[i], opts); |