mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Simply unit test invokation.
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -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"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user