Commit fc0ee5bd by Carlos Martín Nieto

Add test for empty config file

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent c7e6e958
......@@ -181,6 +181,14 @@ BEGIN_TEST(config7, "test for invalid ext headers")
END_TEST
BEGIN_TEST(config8, "don't fail on empty files")
git_config *cfg;
must_pass(git_config_open_file(&cfg, CONFIG_BASE "/config8"));
git_config_free(cfg);
END_TEST
BEGIN_SUITE(config)
ADD_TEST(config0);
ADD_TEST(config1);
......@@ -190,4 +198,5 @@ BEGIN_SUITE(config)
ADD_TEST(config5);
ADD_TEST(config6);
ADD_TEST(config7);
ADD_TEST(config8);
END_SUITE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment