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:
parent
a9dba511ab
commit
f7673f6009
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue