Skip to content

Commit

Permalink
Fix Perf Analyzer base unit tests failure due to temporary object issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lkomali committed Jul 23, 2024
1 parent 433ec40 commit b977ce5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/c++/perf_analyzer/test_command_line_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,10 @@ TEST_CASE("Testing Command Line Parser")
SUBCASE("start provided")
{
concurrency_range_start = 100;
std::string concurrency_range_str =
std::to_string(concurrency_range_start);
args.push_back(option_name);
args.push_back(std::to_string(concurrency_range_start).data()); // start
args.push_back(concurrency_range_str.data()); // start

int argc = args.size();
char* argv[argc];
Expand Down

0 comments on commit b977ce5

Please sign in to comment.