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
30d0550d
Commit
30d0550d
authored
May 31, 2011
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for invalid ext header
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent
38d0bc1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
tests/resources/config/config7
+5
-0
tests/t15-config.c
+8
-0
No files found.
tests/resources/config/config7
0 → 100644
View file @
30d0550d
[valid "subsection"]
something = a
; we don't allow anything after closing "
[sec "subsec"x]
bleh = blah
tests/t15-config.c
View file @
30d0550d
...
@@ -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
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