Mercurial > hg > vamp-plugin-tester
diff TestDefaults.cpp @ 23:28097c1b3de4
* Add verbose option
* More sensible response when a plugin legitimately refuses to initialise
* Actually throw an exception when failing to load a plugin, instead of just
saying that we do so in the comment but actually crashing instead
author | cannam |
---|---|
date | Mon, 08 Jun 2009 10:08:26 +0000 |
parents | 0c1c60654125 |
children | b1bc4d045a4b |
line wrap: on
line diff
--- a/TestDefaults.cpp Fri Mar 20 15:57:38 2009 +0000 +++ b/TestDefaults.cpp Mon Jun 08 10:08:26 2009 +0000 @@ -118,6 +118,11 @@ Plugin::ParameterList pl = p->getParameterDescriptors(); for (int i = 0; i < (int)pl.size(); ++i) { if (p->getParameter(pl[i].identifier) != pl[i].defaultValue) { + if (options & Verbose) { + cout << "Parameter: " << pl[i].identifier << endl; + cout << "Expected: " << pl[i].defaultValue << endl; + cout << "Actual: " << p->getParameter(pl[i].identifier) << endl; + } r.push_back(error("Not all parameters have their default values when queried directly after construction")); } p->setParameter(pl[i].identifier, pl[i].defaultValue);