tests: perf_fast_forward: massage result of sprint() into std::string

sprint() returns std::string(), but the new format() returns an sstring. Usually
an sstring is wanted but in this case an sstring will fail as it is added to
an std::string.

Fix the failure (after spring->format conversion) by converting to an std::string.
This commit is contained in:
Avi Kivity
2018-10-29 13:33:22 +02:00
parent 7726ce23b7
commit 7908f09148

View File

@@ -350,7 +350,7 @@ public:
const std::string test_run_count_name = "test_run_count";
params_value[test_run_count_name.c_str()] = test_run_count;
params_value[all_params_names + "," + test_run_count_name] = all_params_values + sprint(",%d", test_run_count);
params_value[all_params_names + "," + test_run_count_name] = all_params_values + std::string(sprint(",%d", test_run_count));
Json::Value stats_value{Json::objectValue};
for (size_t i = 0; i < stats_names.size(); ++i) {