diff --git a/test/test_log_3.cpp b/test/test_log_3.cpp index 944dd4c..7875be7 100644 --- a/test/test_log_3.cpp +++ b/test/test_log_3.cpp @@ -863,7 +863,7 @@ namespace bq { if (current_tested_num % snapshot_idx_mode == 0) { bq::string snapshot = log_inst_ptr->take_snapshot(false); - result_ptr->add_result(snapshot_test_str.end_with(snapshot) || snapshot.end_with(snapshot_test_str), "standard: %s, snapshot: %s", output_str_ptr->c_str(), snapshot.substr(snapshot.size() > output_str_ptr->size() ? snapshot.size() - output_str_ptr->size() : 0, snapshot.size() > output_str_ptr->size() ? output_str_ptr->size() : snapshot.size()); + result_ptr->add_result(snapshot_test_str.end_with(snapshot) || snapshot.end_with(snapshot_test_str), "standard: %s, snapshot: %s", output_str_ptr->c_str(), snapshot.substr(snapshot.size() > output_str_ptr->size() ? snapshot.size() - output_str_ptr->size() : 0, snapshot.size() > output_str_ptr->size() ? output_str_ptr->size() : snapshot.size()).c_str()); snapshot_idx_mode = (snapshot_idx_mode % 1024) + 1; }