test: add test case for cache and fix some issue

This commit is contained in:
Nick Peng
2023-03-20 23:41:34 +08:00
parent aa6f6fd519
commit bf68385d0e
11 changed files with 405 additions and 47 deletions

View File

@@ -50,7 +50,7 @@ void ping_result_callback(struct ping_host_struct *ping_host, const char *host,
*count = 1;
}
TEST_F(Ping, DISABLED_icmp)
TEST_F(Ping, icmp)
{
struct ping_host_struct *ping_host;
int count = 0;
@@ -61,7 +61,7 @@ TEST_F(Ping, DISABLED_icmp)
EXPECT_EQ(count, 1);
}
TEST_F(Ping, DISABLED_tcp)
TEST_F(Ping, tcp)
{
struct ping_host_struct *ping_host;
int count = 0;