Improve code coverage for the "parser" test

This commit is contained in:
Pierre Pronchery 2018-02-19 19:43:43 +01:00
parent 6a55ab9a0b
commit 261f200e0a

View File

@ -56,6 +56,9 @@ static int _parser(char const * progname)
ret = error_print(progname);
else if(string_compare(p, "config-empty.conf") != 0)
ret = error_print(progname);
if(parser_scan(parser) == 0)
ret = error_set_print(progname, 2, "%s",
"Should not be able to scan");
parser_delete(parser);
return ret;
}