Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
d52a93fa
Commit
d52a93fa
authored
Sep 30, 2013
by
Linquize
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test case to test ']' and '\\' characters in config subsection
parent
566dd8ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
tests-clar/config/read.c
+7
-0
tests-clar/resources/config/config20
+11
-0
No files found.
tests-clar/config/read.c
View file @
d52a93fa
...
@@ -164,6 +164,13 @@ void test_config_read__empty_files(void)
...
@@ -164,6 +164,13 @@ void test_config_read__empty_files(void)
git_config_free
(
cfg
);
git_config_free
(
cfg
);
}
}
void
test_config_read__symbol_headers
(
void
)
{
git_config
*
cfg
;
cl_git_pass
(
git_config_open_ondisk
(
&
cfg
,
cl_fixture
(
"config/config20"
)));
git_config_free
(
cfg
);
}
void
test_config_read__header_in_last_line
(
void
)
void
test_config_read__header_in_last_line
(
void
)
{
{
git_config
*
cfg
;
git_config
*
cfg
;
...
...
tests-clar/resources/config/config20
0 → 100644
View file @
d52a93fa
[valid "[subsection]"]
something = a
; we don't allow anything after closing "
[sec "[subsec]/child"]
parent = grand
[sec2 "[subsec2]/child2"]
type = dvcs
[sec3 "escape\"quote"]
vcs = git
[sec4 "escaping\\slash"]
lib = git2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment