mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 07:20:07 +00:00
Add test for invalid ext header
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
parent
38d0bc1e81
commit
30d0550da8
BIN
tests/resources/config/config7
Normal file
BIN
tests/resources/config/config7
Normal file
Binary file not shown.
@ -174,6 +174,13 @@ BEGIN_TEST(config6, "test blank lines")
|
||||
git_config_free(cfg);
|
||||
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)
|
||||
ADD_TEST(config0);
|
||||
ADD_TEST(config1);
|
||||
@ -182,4 +189,5 @@ BEGIN_SUITE(config)
|
||||
ADD_TEST(config4);
|
||||
ADD_TEST(config5);
|
||||
ADD_TEST(config6);
|
||||
ADD_TEST(config7);
|
||||
END_SUITE
|
||||
|
Loading…
Reference in New Issue
Block a user