17 lines
412 B
C++
17 lines
412 B
C++
#ifndef OSRM_UNIT_TEST_ARGS
|
|
#define OSRM_UNIT_TEST_ARGS
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
inline std::vector<std::string> get_args()
|
|
{
|
|
// Split off argv[0], store actual positional arguments in args
|
|
const auto argc = boost::unit_test::framework::master_test_suite().argc - 1;
|
|
const auto argv = boost::unit_test::framework::master_test_suite().argv + 1;
|
|
|
|
return {argv, argv + argc};
|
|
}
|
|
|
|
#endif
|