1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Improve test coverage for config.

This commit is contained in:
winlin 2020-01-01 16:06:12 +08:00
parent a9dba511ab
commit f7673f6009

View file

@ -2746,9 +2746,14 @@ VOID TEST(ConfigMainTest, CheckGlobalConfig)
if (true) { if (true) {
MockSrsConfig conf; MockSrsConfig conf;
HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "asprocess on;")); HELPER_ASSERT_SUCCESS(conf.parse(_MIN_OK_CONF "daemon off; asprocess on;"));
EXPECT_TRUE(conf.get_asprocess()); EXPECT_TRUE(conf.get_asprocess());
} }
if (true) {
MockSrsConfig conf;
HELPER_ASSERT_FAILED(conf.parse(_MIN_OK_CONF "daemon on; asprocess on;"));
}
} }
VOID TEST(ConfigMainTest, CheckStreamCaster) VOID TEST(ConfigMainTest, CheckStreamCaster)