cleanup
This commit is contained in:
parent
7c0d583435
commit
857dcc5535
@ -25,16 +25,9 @@
|
|||||||
|
|
||||||
#include "initialize.hpp"
|
#include "initialize.hpp"
|
||||||
#include "test_common.hpp"
|
#include "test_common.hpp"
|
||||||
#if defined(_WIN32)
|
|
||||||
#include "utils/cli_utils.hpp"
|
|
||||||
#endif // defined(_WIN32)
|
|
||||||
|
|
||||||
using namespace repertory;
|
using namespace repertory;
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
std::size_t PROVIDER_INDEX{0U};
|
|
||||||
#endif // defined(_WIN32)
|
|
||||||
|
|
||||||
auto main(int argc, char **argv) -> int {
|
auto main(int argc, char **argv) -> int {
|
||||||
#if defined(PROJECT_ENABLE_BACKWARD_CPP)
|
#if defined(PROJECT_ENABLE_BACKWARD_CPP)
|
||||||
static backward::SignalHandling sh;
|
static backward::SignalHandling sh;
|
||||||
@ -45,21 +38,6 @@ auto main(int argc, char **argv) -> int {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
std::vector<const char *> args;
|
|
||||||
{
|
|
||||||
auto args_span = std::span(argv, static_cast<std::size_t>(argc));
|
|
||||||
std::copy(args_span.begin(), args_span.end(), std::back_inserter(args));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (utils::cli::has_option(args, "--provider_index")) {
|
|
||||||
PROVIDER_INDEX = static_cast<std::size_t>(
|
|
||||||
utils::string::to_uint64(
|
|
||||||
utils::cli::parse_option(args, "--provider_index", 1U)[0U]) +
|
|
||||||
1U);
|
|
||||||
}
|
|
||||||
#endif // defined(_WIN32)
|
|
||||||
|
|
||||||
::testing::InitGoogleTest(&argc, argv);
|
::testing::InitGoogleTest(&argc, argv);
|
||||||
auto ret = RUN_ALL_TESTS();
|
auto ret = RUN_ALL_TESTS();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user