From 82189f7abd43564fcb046bcfb169a078221ebcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 28 May 2013 15:34:46 -0400 Subject: [PATCH] config-parser: Add tests for expect behavuor on NULL configs and sections --- shared/config-parser-test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shared/config-parser-test.c b/shared/config-parser-test.c index 86843a0f..12a8fbd8 100644 --- a/shared/config-parser-test.c +++ b/shared/config-parser-test.c @@ -192,5 +192,11 @@ int main(int argc, char *argv[]) config = run_test(t4); assert(config == NULL); + weston_config_destroy(NULL); + assert(weston_config_next_section(NULL, NULL, NULL) == 0); + + section = weston_config_get_section(NULL, "bucket", NULL, NULL); + assert(section == NULL); + return 0; }