embedded-framework/test/utils/LogC/src/LogCTest.cpp
2023-09-10 07:15:05 -07:00

20 lines
427 B
C++

#include "iLog.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace LogCTest
{
// ../output_files/test/bin/LogCTest --gtest_filter=LogCTest.Demo
TEST(LogCTest, Demo)
{
create_log_module();
i_log_init();
LogInfo("hello world.");
LogError("create ... failed.");
LogDebug("a = %d b = %s", 124, "apple");
i_log_unInit();
destroy_log_module();
}
}