mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Add test config parsing
This tests parsing a multiline string containing multiple quoted comment chars. See #6019
This commit is contained in:
@@ -213,6 +213,13 @@ void test_config_read__symbol_headers(void)
|
||||
git_config_free(cfg);
|
||||
}
|
||||
|
||||
void test_config_read__multiline_multiple_quoted_comment_chars(void)
|
||||
{
|
||||
git_config *cfg;
|
||||
cl_git_pass(git_config_open_ondisk(&cfg, cl_fixture("config/config21")));
|
||||
git_config_free(cfg);
|
||||
}
|
||||
|
||||
void test_config_read__header_in_last_line(void)
|
||||
{
|
||||
git_config *cfg;
|
||||
|
||||
5
tests/resources/config/config21
vendored
Normal file
5
tests/resources/config/config21
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[alias]
|
||||
m = '\
|
||||
";" \
|
||||
";" \
|
||||
'
|
||||
Reference in New Issue
Block a user