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
733666f8
Unverified
Commit
733666f8
authored
Jul 03, 2018
by
2xsec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: cleanup reboot.c
Signed-off-by:
2xsec
<
dh48.jeong@samsung.com
>
parent
fe142896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
reboot.c
src/tests/reboot.c
+4
-0
No files found.
src/tests/reboot.c
View file @
733666f8
...
...
@@ -41,6 +41,7 @@ static int do_reboot(void *arg)
if
(
reboot
(
*
cmd
))
printf
(
"failed to reboot(%d): %s
\n
"
,
*
cmd
,
strerror
(
errno
));
return
0
;
}
...
...
@@ -65,6 +66,7 @@ static int test_reboot(int cmd, int sig)
if
(
!
WIFSIGNALED
(
status
))
{
if
(
sig
!=
-
1
)
printf
(
"child process exited but was not signaled
\n
"
);
return
-
1
;
}
...
...
@@ -89,9 +91,11 @@ static int have_reboot_patch(void)
fclose
(
f
);
if
(
ret
!=
1
)
return
0
;
ret
=
reboot
(
v
?
LINUX_REBOOT_CMD_CAD_ON
:
LINUX_REBOOT_CMD_CAD_OFF
);
if
(
ret
!=
-
1
)
return
0
;
return
1
;
}
...
...
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