Commit 30d0550d by Carlos Martín Nieto

Add test for invalid ext header

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent 38d0bc1e
[valid "subsection"]
something = a
; we don't allow anything after closing "
[sec "subsec"x]
bleh = blah
...@@ -174,6 +174,13 @@ BEGIN_TEST(config6, "test blank lines") ...@@ -174,6 +174,13 @@ BEGIN_TEST(config6, "test blank lines")
git_config_free(cfg); git_config_free(cfg);
END_TEST END_TEST
BEGIN_TEST(config7, "test for invalid ext headers")
git_config *cfg;
must_fail(git_config_open_file(&cfg, CONFIG_BASE "/config7"));
END_TEST
BEGIN_SUITE(config) BEGIN_SUITE(config)
ADD_TEST(config0); ADD_TEST(config0);
ADD_TEST(config1); ADD_TEST(config1);
...@@ -182,4 +189,5 @@ BEGIN_SUITE(config) ...@@ -182,4 +189,5 @@ BEGIN_SUITE(config)
ADD_TEST(config4); ADD_TEST(config4);
ADD_TEST(config5); ADD_TEST(config5);
ADD_TEST(config6); ADD_TEST(config6);
ADD_TEST(config7);
END_SUITE 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