Improve code coverage for the "config" test

This commit is contained in:
Pierre Pronchery 2018-02-19 19:13:34 +01:00
parent c5535a04ca
commit bd2fcbd1b2

View File

@ -160,11 +160,13 @@ static int _test2(char const * progname, size_t size, ...)
/* main */
int main(int argc, char * argv[])
{
int ret = 0;
int ret;
String const variable[] = "variable";
String const expected[] = "expected";
(void) argc;
ret = (_test(argv[0], "config-nonexistent.conf", NULL, NULL) != 0)
? 0 : -1;
ret |= _test(argv[0], "config.conf", variable, expected);
ret |= _test(argv[0], "config-noeol.conf", variable, expected);
ret |= _test2(argv[0], 0, NULL);