From 4af70eb1285e0705b2d4d81561e23d86a995dcdc Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Fri, 18 May 2012 12:46:19 -0700 Subject: [PATCH] Simply unit test invokation. --- src/main.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 90ff261bb..11008f002 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -120,15 +120,7 @@ int main(int argc, char* argv[]) } else if (bTest) { - std::vector pvCmd; - - // 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]); + iResult = unit_test_main(init_unit_test, argc, argv); } else if (!vm.count("parameters")) {