Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
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
Chen Yisong
lxc
Commits
add40e62
Unverified
Commit
add40e62
authored
May 03, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add lxc_config_item_is_supported() tests
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
12461428
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
get_item.c
src/tests/get_item.c
+11
-0
No files found.
src/tests/get_item.c
View file @
add40e62
...
...
@@ -391,6 +391,17 @@ int main(int argc, char *argv[])
fprintf
(
stderr
,
"%d: failed clearing lxc.hook
\n
"
,
__LINE__
);
goto
out
;
}
if
(
!
lxc_config_item_is_supported
(
"lxc.arch"
))
{
fprintf
(
stderr
,
"%d: failed to report
\"
lxc.arch
\"
as supported configuration item
\n
"
,
__LINE__
);
goto
out
;
}
if
(
lxc_config_item_is_supported
(
"lxc.nonsense"
))
{
fprintf
(
stderr
,
"%d: failed to detect
\"
lxc.nonsense
\"
as unsupported configuration item
\n
"
,
__LINE__
);
goto
out
;
}
printf
(
"All get_item tests passed
\n
"
);
ret
=
EXIT_SUCCESS
;
out:
...
...
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