Add missing changes

This commit is contained in:
Richard Berger
2021-03-29 15:01:29 -04:00
parent aaf9aa6d69
commit 6f986eee4e
3 changed files with 20 additions and 28 deletions

View File

@ -127,15 +127,15 @@ TEST_F(FileOperationsTest, safe_fread)
TEST_F(FileOperationsTest, logmesg)
{
char buf[8];
::testing::internal::CaptureStdout();
BEGIN_HIDE_OUTPUT();
command("echo none");
::testing::internal::GetCapturedStdout();
::testing::internal::CaptureStdout();
END_HIDE_OUTPUT();
BEGIN_CAPTURE_OUTPUT();
utils::logmesg(lmp, "one\n");
command("log test_logmesg.log");
utils::logmesg(lmp, "two\n");
command("log none");
std::string out = ::testing::internal::GetCapturedStdout();
std::string out = END_CAPTURE_OUTPUT();
memset(buf, 0, 8);
FILE *fp = fopen("test_logmesg.log", "r");
fread(buf, 1, 8, fp);