mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
CI: Cover all kernel log
This commit is contained in:
parent
492db1a904
commit
39541b51a1
1 changed files with 21 additions and 0 deletions
|
@ -33,6 +33,7 @@ using namespace std;
|
|||
#include <srs_kernel_aac.hpp>
|
||||
#include <srs_kernel_balance.hpp>
|
||||
#include <srs_kernel_file.hpp>
|
||||
#include <srs_kernel_log.hpp>
|
||||
|
||||
#define MAX_MOCK_DATA_SIZE 1024 * 1024
|
||||
|
||||
|
@ -2977,3 +2978,23 @@ VOID TEST(KernelFLVTest, CoverAll)
|
|||
#endif
|
||||
}
|
||||
|
||||
VOID TEST(KernelLogTest, CoverAll)
|
||||
{
|
||||
if (true) {
|
||||
ISrsLog l;
|
||||
EXPECT_TRUE(srs_success == l.initialize());
|
||||
|
||||
l.reopen();
|
||||
l.verbose("TAG", 0, "log");
|
||||
l.info("TAG", 0, "log");
|
||||
l.trace("TAG", 0, "log");
|
||||
l.warn("TAG", 0, "log");
|
||||
l.error("TAG", 0, "log");
|
||||
|
||||
ISrsThreadContext ctx;
|
||||
ctx.set_id(10);
|
||||
EXPECT_EQ(0, ctx.get_id());
|
||||
EXPECT_EQ(0, ctx.generate_id());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue