mirror of https://github.com/PentHertz/srsLTE.git
Fix a valgrind issue in a unit test in log_channel_test where the buffer was not being null terminated.
This commit is contained in:
parent
eb27efd867
commit
358c4de0bd
|
@ -288,6 +288,7 @@ when_logging_with_small_string_then_filled_in_log_entry_is_pushed_into_the_backe
|
||||||
|
|
||||||
small_str_buffer buf;
|
small_str_buffer buf;
|
||||||
fmt::format_to(buf, "A {} {} {}", 1, 2, 3);
|
fmt::format_to(buf, "A {} {} {}", 1, 2, 3);
|
||||||
|
buf.push_back('\0');
|
||||||
log(std::move(buf));
|
log(std::move(buf));
|
||||||
|
|
||||||
ASSERT_EQ(backend.push_invocation_count(), 1);
|
ASSERT_EQ(backend.push_invocation_count(), 1);
|
||||||
|
|
Loading…
Reference in New Issue