Simply unit test invokation.

This commit is contained in:
Arthur Britto
2012-05-18 12:46:19 -07:00
parent b15cbb3cdc
commit 4af70eb128

View File

@@ -120,15 +120,7 @@ int main(int argc, char* argv[])
} }
else if (bTest) else if (bTest)
{ {
std::vector<char*> pvCmd; iResult = unit_test_main(init_unit_test, argc, argv);
// Copy all but "--test" at argv[1].
pvCmd.push_back(argv[0]);
for (int i=1; i++ != argc; )
pvCmd.push_back(argv[i]);
iResult = unit_test_main(init_unit_test, pvCmd.size()-1, &pvCmd[0]);
} }
else if (!vm.count("parameters")) else if (!vm.count("parameters"))
{ {